{"version":"2.1.248","anchor":"stale-file-cleanup-can-now-skip-files-in-use","canonical_anchor":"stale-file-cleanup-can-now-skip-files-in-use","heading":"Stale-file cleanup can now skip files in use","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/stale-file-cleanup-can-now-skip-files-in-use","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Stale-file cleanup can now skip files in use\n\nCleanup of old files can now keep ones still in use instead of deleting them.\n\n**What**\n\nThe helper that deletes files older than a cutoff accepts an optional check, given each file's path and stats, that keeps the file instead of deleting it. Retained files are counted separately from deleted ones.\n\n**Details**\n\n- Supplied by whichever code runs the sweep; there is no setting or flag for it.\n\n**Evidence**\n\n`filesRetainedFresh++`\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}