C# Class ARCed.Helpers.Compressor

Static class used for compressing/extracting files and folders using 7zip.
Show file Open project: borisblizzard/arcreator

Public Methods

Method Description
CompressDirectory ( string inDir, string outFile, bool notify = false ) : void

Compresses a directory into a single archive

ExtractArchive ( string inFile, string outDir ) : void

Extracts and archive to the given directory

Private Methods

Method Description
ExtractorExtractionFinished ( object sender, EventArgs e ) : void

Method Details

CompressDirectory() public static method

Compresses a directory into a single archive
public static CompressDirectory ( string inDir, string outFile, bool notify = false ) : void
inDir string The path to the directory to compress
outFile string The archive name to create
notify bool Flag to notify user when finished
return void

ExtractArchive() public static method

Extracts and archive to the given directory
public static ExtractArchive ( string inFile, string outDir ) : void
inFile string Path to the archive to extract
outDir string The path to the target directory for extraction
return void