(tempDir: string)
| 383 | } |
| 384 | |
| 385 | export 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 | } |
no test coverage detected