Creates a directory within the ZIP archive.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Function CreateDirectory ( _ archiveDirectoryPath As String _ ) As ZipItem |
C# |
---|
public ZipItem CreateDirectory( string archiveDirectoryPath ) |
Parameters
- archiveDirectoryPath
- Type: System..::..String
Path to a directory to be created.
Return Value
Newly created directory.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The specified path is null. |
System..::..ArgumentException | The specified path is empty or contains invalid characters. |
System..::..InvalidOperationException | Archive is not opened for writing. |
System..::..ObjectDisposedException | Archive was already disposed. |
System.IO..::..PathTooLongException | Path is too long (longer than 65.535 characters). |
System.IO..::..IOException | An I/O error occurred. |
Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |