ZipArchive.CreateDirectory Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)
CreateDirectory(String)
Creates a directory within the ZIP archive.
Declaration
public ZipItem CreateDirectory(string archiveDirectoryPath)
Parameters
Type | Name | Description |
---|---|---|
String | archiveDirectoryPath | Path to a directory to be created. |
Returns
Type | Description |
---|---|
Zip |
Newly created directory. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified path is null. |
Argument |
The specified path is empty or contains invalid characters. |
Invalid |
Archive is not opened for writing. |
Object |
Archive was already disposed. |
Path |
Path is too long (longer than 65.535 characters). |
IOException | An I/O error occurred. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
CreateDirectory(String, String)
Creates new empty directory within the specified ZIP archive.
Declaration
public static void CreateDirectory(string zipFilePath, string archiveDirectoryPath)