(path: Path)
| 142 | return x.split("::")[0] |
| 143 | |
| 144 | def get_dir_from_path(path: Path) -> Path: |
| 145 | if path.is_dir(): |
| 146 | return path |
| 147 | return path.parent |
| 148 | |
| 149 | def safe_exists(path: Path) -> bool: |
| 150 | # This can throw on paths that contain characters unrepresentable at the OS level, |
no outgoing calls
no test coverage detected