{"version":"2.1.323","anchor":"atomic-file-writes-can-be-pinned-to-a-held-directory","canonical_anchor":"atomic-file-writes-can-be-pinned-to-a-held-directory","heading":"File edits and writes resist a folder being swapped for a link","tier":"notice","area":"File Tools","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323\/e\/atomic-file-writes-can-be-pinned-to-a-held-directory","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323","markdown":"### File edits and writes resist a folder being swapped for a link\n\nEdits and writes now go through a folder opened in advance and stop if a folder on the path is replaced by a link mid-write\n\n**What**\n\nA symbolic link, or symlink, is a file or folder that points somewhere else. When Claude Code edits or writes a file, it now opens the file's folder first and writes through that open folder. It also refuses to follow a link at the last step. If a folder on the path is replaced by a symlink during the write, the write stops with an error saying so. This option cannot be combined with certain others, and Claude Code refuses if you try.\n\nBefore, writes used a plain rename and did not hold the folder open.\n\n**Why**\n\nThis closes a gap where something could swap a folder for a link between Claude Code's check and its write. Such a swap could send the write to a different place.\n\n- Area: File Tools\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}