Compresses specified files or directories into a GZIP archive.
New GZIP file is created (existing GZIP file is overwritten).
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Sub Compress ( _ sourcePathOrMask As String, _ mode As TraversalMode, _ archivePath As String _ ) |
C# |
---|
public void Compress( string sourcePathOrMask, TraversalMode mode, string archivePath ) |
Parameters
- sourcePathOrMask
- Type: System..::..String
Path (with or without a mask) to an external (local) file or directory.
- mode
- Type: Rebex.IO..::..TraversalMode
Traversal mode.
- archivePath
- Type: System..::..String
Path to a GZIP archive where the files are to be compressed.