{"version":"2.1.336","anchor":"cleanup-deletes-through-an-opened-directory-handle-and-re-ch","canonical_anchor":"cleanup-deletes-through-an-opened-directory-handle-and-re-ch","heading":"Version cleanup double-checks the folder before deleting anything","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/cleanup-deletes-through-an-opened-directory-handle-and-re-ch","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Version cleanup double-checks the folder before deleting anything\n\nCleanup of old and partly installed versions now refuses to delete or move files if the folder changed after it was checked\n\n**What**\n\nWhen Claude Code removes old or partly installed versions, it now opens the containing folder without following symbolic links (shortcuts that point to another location). Before it deletes or renames anything, it confirms the folder is still the same one it checked. If it is not, it refuses. Failure messages now include an error code.\n\nBefore, it relied on a single check of the folder.\n\n**Why**\n\nThis closes a gap where the folder could be swapped for a link between the check and the deletion, causing files elsewhere to be removed.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}