datalad_next.iter_collections.TarfileItem
- class datalad_next.iter_collections.TarfileItem(type: 'FileSystemItemType', name: 'str', size: 'int', mtime: 'float | None' = None, mode: 'int | None' = None, uid: 'int | None' = None, gid: 'int | None' = None, link_target: 'str | None' = None, fp: 'IO | None' = None)[source]
Bases:
FileSystemItem
- link_target: str | None = None
Just as for
name
, a link target is also reported in POSIX format.
- property link_target_path: PurePosixPath | None
Returns the link_target as a
PurePosixPath
instance
- name: str
TAR uses POSIX paths as item identifiers. Not all POSIX paths can be represented on all (non-POSIX) file systems, therefore the item name is represented in POSIX form, instead of in platform conventions.
- property path: PurePosixPath
Returns the item name as a
PurePosixPath
instance