Files
evan188199-tech 6e208560da test(storage): lock file library disk-deletion failure paths (#1719)
Merge the six DT-22 regression cases (previously on a separate
test_file_library_deletion.py branch) into the existing per-module
test file, right after the delete_file / hard_delete_file sections:

- successful delete prunes now-empty parents, keeps non-empty ones
  and the library root itself
- missing on-disk target is a silent no-op; hard delete still clears
  the DB row when the disk file vanished out-of-band
- unlink failure is only logged (list-vs-disk inconsistency window)
- an exception while pruning parents is swallowed: file still
  removed, empty dirs left behind, caller unaffected (current
  behaviour pinned)

Coverage of deeptutor.services.storage.file_library: 84% -> 87%
(196-197 and 203-206 now covered). No product code changes.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:13:15 +08:00
..