io
Input/Output operations.
Classes¶
Functions¶
make_sure_path_exists
¶
make_sure_path_exists(path: os.PathLike[str]) -> None
Ensure that a directory exists, creating it if it does not.
PARAMETER | DESCRIPTION |
---|---|
path
|
A directory tree path for creation. |
RAISES | DESCRIPTION |
---|---|
ProjectForgeError
|
When there is an OSError |
parse_file
¶
parse_file(path: Union[str, Path]) -> Any
remove_paths
¶
remove_paths(
root: Path, paths_to_remove: Iterable[Path]
) -> None
remove_readonly_bit
¶
remove_readonly_bit(
func: Callable[[str], None], path: str, _: Any
) -> None
Clear the readonly bit and reattempt the removal.