Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Gzip.Compress Method

Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)

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.

In This Article
  • Compress(String, TraversalMode, String)
  • Compress(FileSet, String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies