ZipItem.ExtractToDirectory Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)
ExtractToDirectory(String, TraversalMode, ActionOnExistingFiles)
Extracts the current Zip
Declaration
public override ArchiveOperationResult ExtractToDirectory(string targetDirectoryPath, TraversalMode mode, ActionOnExistingFiles defaultActionOnExistingFiles)
Parameters
Type | Name | Description |
---|---|---|
String | targetDirectoryPath | Path to an existing directory into which to extract the item. |
Traversal |
mode | Traversal mode. |
Action |
defaultActionOnExistingFiles | Specifies default behavior for files that already exist at the local directory. |
Returns
Type | Description |
---|---|
Archive |
Operation result. |
Overrides
Exceptions
Type | Condition |
---|---|
Argument |
The specified path is null. |
Argument |
The specified path is empty or contains invalid characters. -or- The system could not retrieve the absolute path. |
Argument |
The |
Invalid |
The item is already deleted. |
Object |
Archive was already disposed. |
Not |
Path is in an invalid format. |
Path |
|
Security |
The caller does not have the required permissions. |
Unauthorized |
Access to the file is denied. |
IOException | An I/O error occurred. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
ExtractToDirectory(String)
Extracts the current item into the specified directory.
Inherited from Archive
Declaration
public virtual ArchiveOperationResult ExtractToDirectory(string targetDirectoryPath)
Parameters
Type | Name | Description |
---|---|---|
String | targetDirectoryPath | Path to an existing directory into which to extract the item. |
Returns
Type | Description |
---|---|
Archive |
Operation result. |