datalad_next.iter_collections.ZipfileItem

class datalad_next.iter_collections.ZipfileItem(type: 'FileSystemItemType', name: 'str', size: 'int', mtime: 'float | None' = None, mode: 'int | None' = None, uid: 'int | None' = None, gid: 'int | None' = None, link_target: 'Any | None' = None, fp: 'IO | None' = None)[source]

Bases: FileSystemItem

name: str
property path: PurePosixPath

Returns the item name as a PurePosixPath instance

ZIP uses POSIX paths as item identifiers from version 6.3.3 onwards. Not all POSIX paths are legal paths on non-POSIX file systems or platforms. Therefore we cannot use a platform-dependent PurePath-instance to address ZIP-file items, anq we use PurePosixPath-instances instead.