reconcileFiles
@forge/monorepo / backend/src / reconcileFiles
Function: reconcileFiles()
reconcileFiles(
context,deps,input):Promise<ReconciliationReport>
Defined in: backend/src/files/index.ts:431
AC-5: detect and report orphans.
Reports, never deletes, and that is the AC's own wording rather than caution for its own sake: a reconciliation job that deletes is a job that can delete a file whose metadata write is merely slow. The threshold makes that unlikely; deleting on the strength of "unlikely" is how data goes missing.
Both directions are covered, and only one of them is visible to the metadata store — bytes with no
metadata can only be found by listing the objects, which is why FileContentStore.listObjects exists.
Parameters
context
deps
content
metadata
input
limit
number
olderThan
string
Returns
Promise<ReconciliationReport>