{"version":"2.1.269","anchor":"dir-sync-stale-file-sweeper-now-validates-by-directory-inode","canonical_anchor":"dir-sync-stale-file-sweeper-now-validates-by-directory-inode","heading":"Dir-sync stale-file sweeper now validates by directory inode before deleting","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269\/e\/dir-sync-stale-file-sweeper-now-validates-by-directory-inode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.269","markdown":"### Dir-sync stale-file sweeper now validates by directory inode before deleting\n\nGit dir-sync cleanup now double-checks a directory's identity before deleting stale files inside it\n\n**What**\n\nThe background process that cleans up stale git pack and lock files during directory syncing now records the target directory's inode (a unique identifier for a specific file or folder on disk) and re-checks that every parent path segment still points to that same directory before deleting anything.\n\n**Why**\n\nThis guards against accidentally deleting files inside the wrong directory if the original directory was replaced, for example via a symlink swap, in the time between when it was listed and when cleanup actually runs.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}