C# Class AA2Install.Archives._7z

Mostrar archivo Open project: aa2g/AA2Install

Public Methods

Method Description
Compress ( string filename, string workingdir, string directory ) : void

Compresses a specified list of files into a 7z archive.

Extract ( string filename, string dest = "" ) : void

Extracts a 7Zip archive to the temp folder

Extract ( string filename, string wildcard, string dest = "" ) : void

Extracts a 7Zip archive to the temp folder (using wildcard)

Index ( string filename, bool miscFiles = false ) : Mod

Creates a mod index from a 7Zip file

Private Methods

Method Description
SyncCompress ( string filename, string workingdir, string directory ) : void
SyncExtract ( string filename, string wildcard, string dest = "" ) : void

Method Details

Compress() public static method

Compresses a specified list of files into a 7z archive.
public static Compress ( string filename, string workingdir, string directory ) : void
filename string Location to save the 7Z file.
workingdir string Working directory of 7za.exe.
directory string Files to compress into the archive.
return void

Extract() public static method

Extracts a 7Zip archive to the temp folder
public static Extract ( string filename, string dest = "" ) : void
filename string Location of the 7Zip file.
dest string Destination of extracted files.
return void

Extract() public static method

Extracts a 7Zip archive to the temp folder (using wildcard)
public static Extract ( string filename, string wildcard, string dest = "" ) : void
filename string Location of the 7Zip file.
wildcard string Wildcard.
dest string
return void

Index() public static method

Creates a mod index from a 7Zip file
public static Index ( string filename, bool miscFiles = false ) : Mod
filename string Location of the 7Zip file.
miscFiles bool Whether or not to include files that aren't related to mod installation. Default is false.
return Mod