Zip Files#

class zipfile#

The ZipFile class allows access to a zip file and the compressed files within.

entries()#

Returns a list of all entries (files and directories) of this zip file.

The returned Lua table is a sequence of tables, one for each entry, with the following fields:

Field

Description

name

File name. This is a full file name relative to the root of the zip file and will contain path separators if the entry is located inside a directory.

is_directory

true if this entry is a directory.

Warning

Entries will be returned in a random order.

Return type:

table

Version History

Version

Notes

0.3.0

Added

content(path)#

Get the content of the entry/file at path.

If path is not valid for this zip, nil is returned.

Parameters:

path (string)

Return type:

string

Version History

Version

Notes

0.3.0

Added