(rel: str, dst: Path)
| 381 | prior_hashes = dict(manifest.files) |
| 382 | |
| 383 | def _is_managed(rel: str, dst: Path) -> bool: |
| 384 | expected = prior_hashes.get(rel) |
| 385 | if not expected or not dst.is_file() or dst.is_symlink(): |
| 386 | return False |
| 387 | if manifest.is_recovered(rel): |
| 388 | return False |
| 389 | try: |
| 390 | return _sha256(dst) == expected |
| 391 | except OSError: |
| 392 | return False |
| 393 | |
| 394 | skipped_files: list[str] = [] |
| 395 | preserved_user_files: list[str] = [] |
no test coverage detected