Remove a directory and all its contents. Like rm -rf on Unix. :param path: A directory path.
(path: Path | str)
| 33 | |
| 34 | |
| 35 | def rmtree(path: Path | str) -> None: |
| 36 | """Remove a directory and all its contents. Like rm -rf on Unix. |
| 37 | |
| 38 | :param path: A directory path. |
| 39 | """ |
| 40 | shutil.rmtree(path, onerror=force_delete) |
| 41 | |
| 42 | |
| 43 | def make_sure_path_exists(path: Path | str) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…