Extracts specified archive item(s) from the specified ZIP archive into the specified local directory.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Shared Function Extract ( _ zipFilePath As String, _ archivePathOrMask As String, _ targetDirectoryPath As String, _ mode As TraversalMode, _ transferMethod As TransferMethod, _ defaultActionOnExistingFiles As ActionOnExistingFiles _ ) As ArchiveOperationResult |
C# |
---|
public static ArchiveOperationResult Extract( string zipFilePath, string archivePathOrMask, string targetDirectoryPath, TraversalMode mode, TransferMethod transferMethod, ActionOnExistingFiles defaultActionOnExistingFiles ) |
Parameters
- zipFilePath
- Type: System..::..String
Path to a ZIP archive file.
- archivePathOrMask
- Type: System..::..String
Path (with or without a mask) to an archive item(s).
- targetDirectoryPath
- Type: System..::..String
Path to an existing local directory to which to extract files.
- mode
- Type: Rebex.IO..::..TraversalMode
Traversal mode.
- transferMethod
- Type: Rebex.IO..::..TransferMethod
Specifies whether to copy or move source items.
- defaultActionOnExistingFiles
- Type: Rebex.IO..::..ActionOnExistingFiles
Specifies the default behavior for files that already exists in the local directory.