get the last part of the path (removing the trailing slash if it exists)
(p: PathLike)
| 82 | |
| 83 | |
| 84 | def _basename(p: PathLike) -> str: |
| 85 | """get the last part of the path (removing the trailing slash if it exists)""" |
| 86 | sep = os.path.sep + (os.path.altsep or "") + "/ " |
| 87 | return Path(f"{p}".rstrip(sep)).name |
| 88 | |
| 89 | |
| 90 | def _download_with_progress(url: str, filepath: Path, progress: bool = True) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…