Zip object

The Zip object creates, reads, and extracts ZIP archive files

Operation Description
Zip archive iteration Iterate over the Zip archive, entry by entry
Zip length operator Get the number of entries in the Zip archive
Property Description Access Type
Zip.count Get number of Zip entries readonly number
Zip.error Get last error message after failed Zip operation readonly -
Zip.file Get the Zip File object readonly
Zip.iszip64 Check if the Zip archive uses ZIP64 extensions readonly -
Zip.size Get total size in bytes of the Zip archive readonly -
Methods Description Return value
Zip:async.extract() Extract an entry asynchronously
Zip:async.extractall() Extract all archive content asynchronously
Zip:close() Close Zip archive -
Zip:constructor() Zip Object constructor
Zip:extract() Extract an entry from Zip archive
Zip:extractall() Extract all Zip archive content to disk number boolean
Zip:isdirectory() Check for directory entry in Zip archive boolean
Zip:read() Read data from Zip archive
Zip:remove() Delete one or more entries from Zip archive number boolean
Zip:reopen() Close and reopen the Zip archive -
Zip:write() Write data to Zip archive boolean