Inheritance diagram for DzZipFile:
Enumerations | |
enum | AccessMode { ReadOnly, WriteOnly, Append } |
Methods | |
void | close () |
Boolean | compressAll (String path, Boolean recursive=true) |
Boolean | extractAll (String path) |
String | getFileComment () |
Number | getNumEntries () |
bool | open (AccessMode mode) |
Constructors | |
DzZipFile (String file) |
This class provides DAZ Script functionality for reading and writing *.zip files.
DzZipFile::DzZipFile | ( | String | file | ) |
Create a file with the given file name
void DzZipFile::close | ( | ) |
Close the file
Compresses all the files in the given directory.
path | The directory to compress files from. | |
recursive | If true, the entire directory tree is compressed (i.e. the directory and all of its subdirectories, recursively). Otehrwise, only files in the given path are compressed. |
Extracts all the files from the zip file. The files are created relative to the given path.
String DzZipFile::getFileComment | ( | ) |
The global comment for the zip file.
int DzZipFile::getNumEntries | ( | ) |
bool DzZipFile::open | ( | AccessMode | mode | ) |
Open the file with the given mode.