ZipArchive.CreateDirectory Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
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 |
---|---|
ZipItem | Newly created directory. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The specified path is null. |
ArgumentException | The specified path is empty or contains invalid characters. |
InvalidOperationException | Archive is not opened for writing. |
ObjectDisposedException | Archive was already disposed. |
PathTooLongException | Path is too long (longer than 65.535 characters). |
IOException | An I/O error occurred. |
ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |
CreateDirectory(String, String)
Creates new empty directory within the specified ZIP archive.
Declaration
public static void CreateDirectory(string zipFilePath, string archiveDirectoryPath)
Parameters
Type | Name | Description |
---|---|---|
String | zipFilePath | Path to a ZIP archive file. |
String | archiveDirectoryPath | Path to a non-existing directory to be created. |