datalad_next.iter_collections.GitWorktreeFileSystemItem
- class datalad_next.iter_collections.GitWorktreeFileSystemItem(type: 'FileSystemItemType', name: 'PurePath', size: 'int', mtime: 'float | None' = None, mode: 'int | None' = None, uid: 'int | None' = None, gid: 'int | None' = None, link_target: 'str | PathLike[str] | None' = None, fp: 'IO | None' = None, gitsha: 'str | None' = None, gittype: 'GitTreeItemType | None' = None)[source]
Bases:
FileSystemItem
- classmethod from_worktreeitem(basepath: Path, item: GitWorktreeItem, link_target: bool = True) GitWorktreeFileSystemItem [source]
Create GitWorktreeFileSystemItem from corresponding GitWorktreeItem
- Parameters:
basepath (Path) -- Reference path to convert the
GitWorktreeItem
's path into a path on the file system.item (GitWorktreeItem) -- Item to create matching
GitWorktreeFileSystemItem
for.link_target (bool) -- Flag whether to read out a link-target for an item that is a symlink.
- gitsha: str | None = None
- gittype: GitTreeItemType | None = None
- name: PurePath