{"version":"2.1.280","anchor":"file-integrity-check-now-distinguishes-missing-from-diffe","canonical_anchor":"file-integrity-check-now-distinguishes-missing-from-diffe","heading":"File-integrity check now distinguishes 'missing' from 'differs' from 'holds'","tier":"internal","area":"Elsewhere","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/file-integrity-check-now-distinguishes-missing-from-diffe","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### File-integrity check now distinguishes 'missing' from 'differs' from 'holds'\n\nFile-integrity checks now report whether a file is missing, differs, or matches, instead of just yes\/no\n\n**What**\n\nA helper function that compares a file on disk against expected contents previously only returned true or false. It now returns one of three specific results: `holds` (the file matches), `differs` (the file exists but its size or content doesn't match), or `missing` (the file doesn't exist at all).\n\n**Why**\n\nThis lets code that checks file integrity distinguish between a file being absent versus a file being present but changed, which are different situations that may need different handling.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}