path_utils
Utility functions for paths.
check_path_exists(path)
#
Check if a path exists. If not, raise an error.
Note that it returns path
as a Path object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path | Union[str, Path] | Path to check. | required |
Returns:
Type | Description |
---|---|
Path | Path as a Path object. |