@zip.js/zip.js
    Preparing search index...

    Class ZipEntry

    Represents an entry in a zip file (Filesystem API).

    Hierarchy (View Summary)

    Index
    children: ZipEntry[]

    The children of the entry.

    The underlying EntryMetaData instance.

    id: number

    The ID of the instance.

    name: string

    The relative filename of the entry.

    The options applied to the entry when the zip file is exported.

    These are the options passed when the entry was added to the filesystem, updated by ZipEntry#setOptions. An entry imported from a zip file has none until ZipEntry#setOptions is called.

    parent?: ZipEntry

    The parent directory of the entry.

    uncompressedSize: number

    The uncompressed size of the content.

    It is the size of the raw compressed content when the entry has been imported with the passThrough option set to true, since the entry holds the compressed data in that case. The uncompressed size of the original entry remains available in ZipEntry#data.

    • Tests the password on the entry and all children if any, returns true if the entry is not password protected

      Parameters

      Returns Promise<boolean>

    • Clones the entry

      Parameters

      • OptionaldeepClone: boolean

        true to clone all the descendants.

      Returns ZipEntry

    • Returns the full filename of the entry

      Returns string

    • Tests if the entry or any of its children is password protected

      Returns boolean

    • Set the name of the entry

      Parameters

      • name: string

        The new name of the entry.

      Returns void