pex.fs
¶
Package Contents¶
- class pex.fs.FS¶
Bases:
object
Main class of pex.fs module.
This main class of pex.fs module is intended for providing implementations of filesystem features.
- static exists(path: str) Tuple[bool, bool] ¶
Check if path exist in the filesystem.
- Parameters:
path (str) – path to check
- Return Tuple[bool, bool]:
first entry is True if path exists second entry is True if path is directory
- static check_dir(path: str) None ¶
Check if directory exist in the filesystem.
- Parameters:
path (str) – path to check
- Return None:
None
- Raises:
RuntimeError – with trailing error message
- static check_file(path: str) None ¶
Check if file exist in the filesystem.
- Parameters:
path (str) – path to check
- Return None:
None
- Raises:
RuntimeError – with trailing error message