|
TorqueScript Reference
|
Inherits SimObject.
Static Public Attributes | |
| struct { | |
| Zip::ZipArchive::AccessMode mode | |
| const char * strMode | |
| } | gModeMap [] |
| Boolean addFile | ( | filename | , |
| pathInZip | , | ||
| [replace = true] ? | |||
| ) |
Add a file to the zip
| filename | The name of the file |
| pathInZip | The internal (to the zip) path to the file |
| replace | Set whether to replace the file if one already exists with the name in the path (default true) |
| void closeArchive | ( | ) |
Close the zip file
| void closeFile | ( | stream | ) |
Close a file within the zip
| stream | The file stream ID |
| Boolean deleteFile | ( | pathInZip | ) |
Delete a file from the zip
| pathInZip | The full internal path of the file |
| Boolean extractFile | ( | pathInZip | , |
| filename | |||
| ) |
Extract a file from the zip
| pathInZip | The internal path of the desired file |
| filename | The file's name |
| String getFileEntry | ( | index | ) |
Get file entry.
| index | Index to file entry |
| Integer getFileEntryCount | ( | ) |
Get number of files in the zip
| Boolean openArchive | ( | filename | , |
| [accessMode = Read] ? | |||
| ) |
Open a zip file
| filename | The file's name |
| accessMode | The mode in which to open the file (default Read) |
| Integer openFileForRead | ( | filename | ) |
Open a file within the zip for reading
| filename | The file's name to open in current zip file |
| Integer openFileForWrite | ( | filename | ) |
Open a file within the zip for writing
| filename | The file's name to open in current zip file |
| const { ... } gModeMap[] |
| Zip::ZipArchive::AccessMode mode |
| const char* strMode |
1.8.10