GitHub

API reference for Header.

The metadata of an entry.

path and link_target are archive paths, as written; a hard link's target names another entry of the archive. mode holds the permission bits, with setuid, setgid and sticky; file type bits are dropped both ways. pax holds the PAX records no other field reflects, global ones included. dev_major and dev_minor are set for device entries only.

Attributes

AttributeTypeDescription
pathstr
typeEntryType
typeflagstr
sizeint
modeint
uidint
gidint
unamestr
gnamestr
mtimedatetime | FarDate
link_targetstr | None = None
dev_majorint | None = None
dev_minorint | None = None
paxMapping[str, str] = field(default_factory=(dict[str, str]), hash=False)

Functions

__init__

__init__(path, type, typeflag, size, mode, uid, gid, uname, gname, mtime, link_target=None, dev_major=None, dev_minor=None, pax=dict[str, str]()) -> None
ParameterTypeDescription
pathstr
typeEntryType
typeflagstr
sizeint
modeint
uidint
gidint
unamestr
gnamestr
mtimedatetime | FarDate
link_targetstr | None = None
dev_majorint | None = None
dev_minorint | None = None
paxMapping[str, str] = dict[str, str]()