INNER CODE UNIT · TypeScript
missing
rit3zh/reacticx · cloudflare/codebase/index.ts:242
const missing = await mapLimit(candidates, config.verifyConcurrency, async (file) => {
try {
return (await objectExists(file.key)) ? undefined : file;
} catch (error) {
throw new Error(`could not verify ${file.key}: ${(error as Error).message}`);
}
});
for (const file of missing) {
if (!file) continue;
plan.push({ file, action: "upload", reason: "missing from bucket" });
unchanged -= 1;
log.warn(`${file.key} ${c.dim("— in the manifest but not in the bucket")}`);
}
}
// Anything in the ledger that no longer exists locally, within the scope of
// the folders this run actually looked at.