MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cleanupSecretBackups

Function cleanupSecretBackups

apps/local/src/db/v1-v2-migration.ts:1324–1330  ·  view source on GitHub ↗
(journal: MigrationJournal)

Source from the content-addressed store, hash-verified

1322};
1323
1324const cleanupSecretBackups = async (journal: MigrationJournal): Promise<void> => {
1325 await cleanupKeychainBackups(journal);
1326 if (journal.authBackup) {
1327 fs.rmSync(journal.authBackup, { force: true });
1328 fsyncDirectory(dirname(journal.authBackup));
1329 }
1330};
1331
1332const pauseMigrationForTest = async (point: string): Promise<void> => {
1333 if (process.env.NODE_ENV !== "test") return;

Callers 3

completeJournaledFlipFunction · 0.85
recoverV1V2MigrationFunction · 0.85

Calls 2

cleanupKeychainBackupsFunction · 0.85
fsyncDirectoryFunction · 0.85

Tested by

no test coverage detected