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 | class="st">""class="st">"Try to cleanup a directory if we can ensure it&class="cm">#x27;s deletable."class="st">"" |
| 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