{"version":"2.1.248","anchor":"whole-file-reads-that-verify-the-file-after-opening-it","canonical_anchor":"whole-file-reads-that-verify-the-file-after-opening-it","heading":"Whole-file reads that verify the file after opening it","tier":"internal","area":"File Reads","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/whole-file-reads-that-verify-the-file-after-opening-it","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Whole-file reads that verify the file after opening it\n\nA new read helper verifies a file after opening it, closing a swap-the-path gap.\n\n**What**\n\nA new read helper opens a file first, then confirms via the open handle that it is a regular file within a size limit before reading, and returns nothing instead of throwing. This closes the gap where a path could change between being checked and being read.\n\n**Evidence**\n\n`readFileFdGated`\n\n- Area: File Reads\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}