Zip object

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