Gzip.Compress Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9083)
Compress(String, TraversalMode, String)
Compresses specified files or directories into a GZIP archive. New GZIP file is created (existing GZIP file is overwritten).
Declaration
public void Compress(string sourcePathOrMask, TraversalMode mode, string archivePath)
Parameters
Type | Name | Description |
---|---|---|
String | sourcePathOrMask | Path (with or without a mask) to an external (local) file or directory. |
TraversalMode | mode | Traversal mode. |
String | archivePath | Path to a GZIP archive where the files are to be compressed. |
Compress(FileSet, String)
Compresses files defined by set
into a GZIP archive.
New GZIP file is created (existing GZIP file is overwritten).
Declaration
public void Compress(FileSet set, string archivePath)
Parameters
Type | Name | Description |
---|---|---|
FileSet | set | FileSet describing which files are to be compressed. |
String | archivePath | Path to a GZIP archive where the files are to be compressed. |