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#
| Attribute | Type | Description |
|---|---|---|
path | str | |
type | EntryType | |
typeflag | str | |
size | int | |
mode | int | |
uid | int | |
gid | int | |
uname | str | |
gname | str | |
mtime | datetime | FarDate | |
link_target | str | None = None | |
dev_major | int | None = None | |
dev_minor | int | None = None | |
pax | Mapping[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| Parameter | Type | Description |
|---|---|---|
path | str | |
type | EntryType | |
typeflag | str | |
size | int | |
mode | int | |
uid | int | |
gid | int | |
uname | str | |
gname | str | |
mtime | datetime | FarDate | |
link_target | str | None = None | |
dev_major | int | None = None | |
dev_minor | int | None = None | |
pax | Mapping[str, str] = dict[str, str]() |