Gets a value indicating whether the specified directory is present in the ZIP archive.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Function DirectoryExists ( _ archiveDirectoryPath As String _ ) As Boolean |
C# |
---|
public bool DirectoryExists( string archiveDirectoryPath ) |
Parameters
- archiveDirectoryPath
- Type: System..::..String
The path of the directory to check.
Return Value
True if the directory exists; false otherwise.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The specified path is null. |
System..::..ArgumentException | The specified path is empty. |
System..::..ObjectDisposedException | Archive was already disposed. |
Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation (see ProblemType for detailed information). |