Class ZipDirectoryEntry

Represents a directory entry in the zip (Filesystem API).

Hierarchy (View Summary)

Constructors

Properties

children: ZipEntry[]

The children of the entry.

The underlying EntryMetaData instance.

directory: true

true for ZipDirectoryEntry instances.

id: number

The ID of the instance.

name: string

The relative filename of the entry.

parent?: ZipEntry

The parent directory of the entry.

uncompressedSize: number

The uncompressed size of the content.

Methods

  • Creates a zip file via a WritableStream instance containing the entry and its descendants

    Parameters

    Returns Promise<WritableStream>

    A promise resolving to the Uint8Array instance.

  • Set the name of the entry

    Parameters

    • name: string

      The new name of the entry.

    Returns void