Object to manipulate Zip archive files.
More...
|
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...
|
|
Object to manipulate Zip archive files.
See also ScriptMaster::zipTool() to obtain this object
◆ createZip()
bool createZip |
( |
string |
fileName, |
|
|
string |
srcDir |
|
) |
| |
Archive a folder into a zip file.
- Parameters
-
fileName | The output zip archive file name |
srcDir | The 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
-
zipFile | The input gzip archive fille name |
outDir | The 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
-
zipFile | The input zip archive fille name |
outDir | The directory to which the files should be extracted |
- Returns
- True if it succeeded, false otherwise