C# Class FluentBuild.Runners.Zip.ZipCompress

Compresses a file or folder
Inheritance: FluentBuild.Utilities.InternalExecutable, IZipCompress
Mostra file Open project: SkightTeam/eLiteWeb Class Usage Examples

Public Methods

Method Description
SourceFile ( FluentFs file ) : ZipCompress

Sets ZipCompress to compress a single file

SourceFile ( string file ) : ZipCompress

Sets ZipCompress to compress a single file

SourceFolder ( FluentFs path ) : ZipCompress

Sets ZipCompress to compress an entire folder

SourceFolder ( string path ) : ZipCompress

Sets ZipCompress to compress an entire folder

To ( string zipFilePath ) : ZipCompress

The location to place the output

To ( FluentFs zipFilePath ) : void

The location to place the output

UsingPassword ( string password ) : ZipCompress

Sets the password to protect the zip file with

ZipCompress ( ) : System

Private Methods

Method Description
GetFiles ( ) : IList
InternalExecute ( ) : void
ZipCompress ( IFileSystemHelper fileSystemHelper ) : System

Method Details

SourceFile() public method

Sets ZipCompress to compress a single file
public SourceFile ( FluentFs file ) : ZipCompress
file FluentFs The file to compress
return ZipCompress

SourceFile() public method

Sets ZipCompress to compress a single file
public SourceFile ( string file ) : ZipCompress
file string The file to compress
return ZipCompress

SourceFolder() public method

Sets ZipCompress to compress an entire folder
public SourceFolder ( FluentFs path ) : ZipCompress
path FluentFs The folder to compress
return ZipCompress

SourceFolder() public method

Sets ZipCompress to compress an entire folder
public SourceFolder ( string path ) : ZipCompress
path string The folder to compress
return ZipCompress

To() public method

The location to place the output
public To ( string zipFilePath ) : ZipCompress
zipFilePath string path to the output file
return ZipCompress

To() public method

The location to place the output
public To ( FluentFs zipFilePath ) : void
zipFilePath FluentFs path to the output file
return void

UsingPassword() public method

Sets the password to protect the zip file with
public UsingPassword ( string password ) : ZipCompress
password string The password to use
return ZipCompress

ZipCompress() public method

public ZipCompress ( ) : System
return System