{"version":"2.1.229","anchor":"truncating-a-file-to-empty-is-no-longer-skipped","canonical_anchor":"truncating-a-file-to-empty-is-no-longer-skipped","heading":"Truncating a file to empty is no longer skipped","tier":"notice","area":"File Writes","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.229\/e\/truncating-a-file-to-empty-is-no-longer-skipped","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.229","markdown":"### Truncating a file to empty is no longer skipped\n\nTruncating a file to empty now actually empties it instead of doing nothing.\n\n**What**\n\nThe append helper previously routed to the storage backend only when there was content to write, so a write in truncating mode with an empty payload did nothing. It now routes on mode as well, and the file is emptied as asked.\n\n**Evidence**\n\n`r === \"w\" || t.length > 0`\n\n- Area: File Writes\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}