Try to cleanup a directory if we can ensure it's deletable.
(path: Path, consider_lock_dead_if_created_before: float)
| 333 | |
| 334 | |
| 335 | def try_cleanup(path: Path, consider_lock_dead_if_created_before: float) -> None: |
| 336 | """Try to cleanup a directory if we can ensure it's deletable.""" |
| 337 | if ensure_deletable(path, consider_lock_dead_if_created_before): |
| 338 | maybe_delete_a_numbered_dir(path) |
| 339 | |
| 340 | |
| 341 | def cleanup_candidates(root: Path, prefix: str, keep: int) -> Iterator[Path]: |
no test coverage detected
searching dependent graphs…