{"version":"2.1.331","anchor":"atomic-file-write-can-refuse-hard-links-and-restore-in-place","canonical_anchor":"atomic-file-write-can-refuse-hard-links-and-restore-in-place","heading":"File writes can refuse files with more than one hard link","tier":"internal","area":"File Writes","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/atomic-file-write-can-refuse-hard-links-and-restore-in-place","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### File writes can refuse files with more than one hard link\n\nClaude Code's file writer can now refuse to write files that have extra hard links, and can restore a file after a failed in-place write\n\n**Unclear.** It is not clear whether the hard-link refusal is turned on for any write Claude Code makes.\n\n**What**\n\nClaude Code's file writer has a new option to refuse any file with more than one hard link (a second name that points at the same file on disk). It can also put back the file's original contents if a write that changes the existing file directly fails partway.\n\n**Why**\n\nThis makes file writes safer, so a failed write is less likely to leave a damaged file and a write cannot reach other files through a shared link.\n\n- Area: File Writes\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}