MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / cleanupTempDatabases

Function cleanupTempDatabases

packages/node-runtime/src/merger/temp-db.ts:385–397  ·  view source on GitHub ↗
(tempDir: string)

Source from the content-addressed store, hash-verified

383}
384
385export function cleanupTempDatabases(tempDir: string): void {
386 try {
387 if (!fs.existsSync(tempDir)) return
388 const files = fs.readdirSync(tempDir)
389 for (const file of files) {
390 if (file.startsWith('merge_') && file.endsWith('.db')) {
391 deleteTempDatabase(path.join(tempDir, file))
392 }
393 }
394 } catch {
395 /* best-effort */
396 }
397}

Callers 1

cleanupOrphansMethod · 0.90

Calls 1

deleteTempDatabaseFunction · 0.85

Tested by

no test coverage detected