OptionalbitThe general purpose bit flag.
The comment of the entry.
true if the comment is encoded in UTF-8.
The size of the compressed data in bytes.
The compression method.
Optionalcrc32The CRC-32 checksum of the content. It is undefined when the zip file does not store it, e.g. for entries
encrypted with AES in AE-2 format.
OptionalcreationThe creation date.
false if the entry is a file.
The number of the disk where the entry data starts.
true if the content of the entry is encrypted.
true if the entry is an executable file
Always false when EntryMetaData#symlink is true: the permissions of a symbolic link
are not meaningful, Unix systems store them as 0o777.
The external file attribute (raw).
Use EntryMetaData#externalFileAttributes instead.
The 32-bit externalFileAttributes field is the authoritative on-disk metadata for each entry.
When writing, all provided options are merged into this field. When reading, convenience fields are decoded from it. For most use cases, prefer the high-level options and fields; only advanced users need to manipulate the raw value directly.
OptionalextraThe extra field.
OptionalextraThe AES extra field.
OptionalextraThe extended timestamp extra field.
OptionalextraThe Info-ZIP New Unix extra field (0x7875), storing variable-length uid/gid in both headers. It is read whenever the type 2 extra field (0x7855) is absent or carries no ids, which is its usual state in the central directory.
OptionalextraThe length of the extra field in bytes.
OptionalextraThe NTFS extra field.
OptionalextraThe PKWARE Unix extra field (0x000d).
OptionalextraThe Unicode comment extra field.
OptionalextraThe Unicode path extra field.
OptionalextraThe Info-ZIP Unix type 2 extra field (0x7855). Its uid/gid are stored in the local file header only, the central directory version carries no data and merely flags their presence.
OptionalextraThe Info-ZIP Unix type 1 extra field (0x5855).
OptionalextraThe USDZ extra field.
OptionalextraThe Zip64 extra field.
The filename of the entry.
OptionalfilenameThe length of the filename in bytes.
true if the filename is encoded in UTF-8.
OptionalgidUnix group id when available.
See EntryMetaData#uid for the fields storing the ids in the local file header only.
The internal file attribute (raw).
Use EntryMetaData#internalFileAttributes instead.
The internal file attributes (raw).
OptionallastThe last access date.
The last modification date.
OptionallocalThe local file header fields, set when the entry data has been read.
The local file header is the only place where the Info-ZIP Unix extra fields type 1 (0x5855) and type 2
(0x7855) store the uid/gid, so this is where they are read for entries carrying just these fields, e.g.
with entry.localDirectory.extraFieldUnixType1.uid. The values are not merged into
EntryMetaData#uid and EntryMetaData#gid, which are read from the central directory.
OptionalmsdosThe MS-DOS attribute flags exposed as booleans.
OptionalmsdosThe MS-DOS attributes low byte (raw). This is the low 8 bits of EntryMetaData#externalFileAttributes when present.
true if internalFileAttributes and externalFileAttributes are compatible with MS-DOS format.
The byte offset of the entry.
OptionalrawThe general purpose bit flag (raw).
The comment of the entry (raw).
OptionalrawThe creation date (raw), as the Windows FILETIME value stored in the NTFS extra field. Only defined when
that extra field is present.
The extra field (raw).
The filename of the entry (raw).
OptionalrawThe last access date (raw), as the Windows FILETIME value stored in the NTFS extra field. Only defined
when that extra field is present.
The last modification date (raw), as the MS-DOS date and time stored in the header. Unlike EntryMetaData#lastModDate, it is not replaced by the value of the NTFS extra field when that field is present; read EntryMetaData#extraFieldNTFS for the raw NTFS value.
Optionalsetgidtrue if the setgid bit is set on the entry.
Optionalsetuidtrue if the setuid bit is set on the entry.
OptionalsignatureThe signature (CRC32 checksum) of the content. It is undefined for entries encrypted with AES returned by
ZipWriter#add.
Use EntryMetaData#crc32 instead.
Optionalstickytrue if the sticky bit is set on the entry.
true if the entry is a symbolic link, i.e. if the Unix file type stored in
EntryMetaData#externalFileAttributes is S_IFLNK (0o120000).
The target of the link is the content of the entry, stored as a path with no trailing NUL
character. It is read like any other entry, e.g. with entry.getData(new TextWriter()).
The path is not validated: it can be absolute or escape the archive with .. segments. It must
be checked before being used to resolve a file.
There is no option to write a symbolic link. Set the file type in
ZipWriterConstructorOptions#unixMode instead, i.e. pass 0o120777 with the path of the
target as the content of the entry.
OptionaluidUnix owner id when available.
The value is read from the central directory. The Info-ZIP Unix extra fields type 1 (0x5855) and type 2 (0x7855) store the ids in the local file header only, so entries carrying just these fields leave the property undefined until the data has been read, at which point it is filled in from EntryMetaData#localDirectory. The Info-ZIP New Unix extra field (0x7875) and the PKWARE Unix extra field (0x000d) store the ids in both headers and are unaffected.
The size of the decompressed data in bytes.
OptionalunixThe upper 16-bit portion of EntryMetaData#externalFileAttributes when it represents Unix mode bits.
OptionalunixUnix mode (st_mode) when available.
The "Version" field.
The "Version made by" field.
true if the entry is using Zip64.
true if the content of the entry is encrypted with the ZipCrypto algorithm.
Retrieves the content of the entry as an ArrayBuffer instance
Optionaloptions: EntryGetDataOptions
The options.
A promise resolving to an ArrayBuffer instance.
Returns the content of the entry
The Writer instance used to write the content of the entry.
Optionaloptions: EntryGetDataCheckPasswordOptions
The options.
A promise resolving to the type to data associated to writer.
Represents the metadata of an entry in a zip file (Core API).