(path: Path, dry_run: bool)
| 276 | |
| 277 | |
| 278 | def _remove_file(path: Path, dry_run: bool) -> None: |
| 279 | if not path.exists(): |
| 280 | print(f" Already absent: {path}") |
| 281 | return |
| 282 | if dry_run: |
| 283 | print(f" [dry-run] remove {path}") |
| 284 | return |
| 285 | path.unlink() |
| 286 | print(f" Removed {path}") |
| 287 | |
| 288 | |
| 289 | def _remove_dir_if_empty(path: Path, dry_run: bool) -> None: |