Skip to content

ZipFile

5saviahv edited this page Apr 15, 2021 · 1 revision

[Array] entries

Returns an array of ZipEntry objects existent in the current opened archive

[String] String comment

Getter/Setter for archive comment

[ZipEntry] getEntry(String entryName)

Returns a reference to the entry with the given entryName or null if entry is inexistent

[void] setEntry(ZipEntry entry)

Adds the given entry to the entry list

[void] deleteEntry(String entryName)

Removes the entry with the given entryName from the entry list. If the entry is a directory, then all nested files and directories will be removed

[Array] getEntryChildren(ZipEntry entry)

Iterates and returns all nested files and directories of the given entry

[Buffer] toBuffer( )

Returns the zip file as a Buffer