C# Class ARCed.Helpers.Compressor

Static class used for compressing/extracting files and folders using 7zip.
Afficher le fichier Open project: borisblizzard/arcreator

Méthodes publiques

Méthode 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

Méthode Description
ExtractorExtractionFinished ( object sender, EventArgs e ) : void

Method Details

CompressDirectory() public static méthode

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
Résultat void

ExtractArchive() public static méthode

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
Résultat void