Universal Directory Tree Utils
is_local_path(path)
Check if the path is a local path
Source code in textual_universal_directorytree/utils.py
| def is_local_path(path: pathlib.Path) -> bool:
"""
Check if the path is a local path
"""
return isinstance(path, LocalPath)
|
is_remote_path(path)
Check if the path is a remote path
Source code in textual_universal_directorytree/utils.py
| def is_remote_path(path: UPath) -> bool:
"""
Check if the path is a remote path
"""
return not is_local_path(path)
|