zip#

local zip = require 'zip'

The zip module provides basic read access to zip files.

Important

ZIP64 files are not yet supported along with any compression methods other than DEFLATE.

Functions#

zip.open(path)#

Load a zip file into a zip.

Parameters:

path (string)

Return type:

zip

Version History

Version

Notes

0.0.1

Added

Classes#

class zip.zip#
files()#

Return a list of files in this zip. Directory names will not be returned as a separate string, but all files inside of directories will.

Return type:

table

Version History

Version

Notes

0.0.1

Added

content(path)#

Return the uncompressed content for a file in this zip. path should be a file path returned by files().

If path does not exist in this zip, this function returns nil

Parameters:

path (string)

Return type:

string

Version History

Version

Notes

0.0.1

Added