GitHub

API reference for Header.

The metadata of an entry.

path is the archive path, as written, with / separators; directory paths end with /. size is the uncompressed byte length when it is known before the body: decoded entries whose sizes follow their data have none. mode holds Unix permission bits, written to the central directory, which decode does not read. mtime has a resolution of one second with an extended timestamp and two seconds otherwise.

Attributes

AttributeTypeDescription
pathstr
typeEntryType
methodMethod
mtimedatetime
sizeint | None = None
modeint | None = None

Functions

__init__

__init__(path, type, method, mtime, size=None, mode=None) -> None
ParameterTypeDescription
pathstr
typeEntryType
methodMethod
mtimedatetime
sizeint | None = None
modeint | None = None