minizip Module#
Miz archive helpers. Use with require("minizip").
Functions#
unzClose#
Closes a miz file.
unzGetCurrentFileName#
Returns the current file name while iterating a miz file.
unzGoToFirstFile#
Sets the iterator to the first file in the miz.
unzGoToNextFile#
Sets the iterator to the next file in the miz.
| Return | Type | Description |
|---|---|---|
found |
boolean |
false when there are no more files. |
unzLocateFile#
Locates a file in the miz and sets the iterator to it.
| Parameter | Type | Required | Description |
|---|---|---|---|
filename |
string |
Yes | File to locate inside the miz. |
| Return | Type | Description |
|---|---|---|
found |
boolean |
false if not found. |
unzOpen#
Opens a miz.
Note
Mode "rb" is known. It is unclear whether "w" works.
unzReadAllCurrentFile#
Returns the content of the current file.
unzUnpackCurrentFile#
Unpacks the current file to a path.
| Return | Type | Description |
|---|---|---|
ok |
boolean |
true on success. |
zipAddFile#
Adds a file from disk to the miz.
| Parameter | Type | Required | Description |
|---|---|---|---|
fileInMiz |
string |
Yes | Destination path inside the miz. |
path |
string |
Yes | Source path on disk. |
| Return | Type | Description |
|---|---|---|
ok |
boolean |
true on success. |
zipAppend#
Unknown.
zipClose#
Closes a miz file.
zipCreate#
Creates a miz.
| Return | Type | Description |
|---|---|---|
archive |
minizip |
Created miz archive handle. |