VivoQuant
Public Member Functions | List of all members
ZipArchive Class Reference

Object to manipulate Zip archive files. More...

Public Member Functions

bool createZip (string fileName, string srcDir)
 Archive a folder into a zip file. More...
 
bool unzip (string zipFile, string outDir=string())
 Extract a zip archive a file. More...
 
bool gunzip (string zipFile, string outDir=string())
 Extract a gzip archive a file. More...
 

Detailed Description

Object to manipulate Zip archive files.

See also ScriptMaster::zipTool() to obtain this object

Member Function Documentation

◆ createZip()

bool createZip ( string  fileName,
string  srcDir 
)

Archive a folder into a zip file.

Parameters
fileNameThe output zip archive file name
srcDirThe input folder containing the files to zip
Returns
True if it succeeded, false otherwise

◆ gunzip()

bool gunzip ( string  zipFile,
string  outDir = string() 
)

Extract a gzip archive a file.

Parameters
zipFileThe input gzip archive fille name
outDirThe directory to which the files should be extracted
Returns
True if it succeeded, false otherwise

◆ unzip()

bool unzip ( string  zipFile,
string  outDir = string() 
)

Extract a zip archive a file.

Parameters
zipFileThe input zip archive fille name
outDirThe directory to which the files should be extracted
Returns
True if it succeeded, false otherwise