VivoQuant 6.4.0
Loading...
Searching...
No Matches
ZipArchive Class Reference

Description

Object to manipulate Zip archive files.

See also VQ.zipTool() to obtain this object

Public Member Functions

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

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