PathManager (session.path)¶
-
class
vsc_irods.manager.path_manager.PathManager(session)[source]¶ A class dealing with paths on the iRODS file system
-
get_irods_home()[source]¶ Returns the path to the iRODS “home” directory, which is e.g. used to expand ‘~/’ in search patterns.
-
get_irods_cwd()[source]¶ Returns the current workding directory on iRODS, which is e.g. used to expand ‘.’ in search patterns.
-
ichdir(path, verbose=False)[source]¶ Changes the current working directory on iRODS.
Arguments:
- path: str
The (absolute or relative) path to which the iRODS current workding directory for this session should be changed.
- verbose: bool (default: False)
Whether to print more output
-
imkdir(path, parents=False, verbose=False, **options)[source]¶ Creates a collection on the iRODS file system
Arguments:
- path: str
The (absolute or relative) collection path to be created
- parents: bool (default: False)
Whether to also create missing parent collections, and not to raise an error when a collection already exists
- verbose: bool (default: False)
Whether to print more output
- options: (any remaining keywords arguments)
Additional options to be passed on to PRC’s collections.create()
-