MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / cleanupDir

Function cleanupDir

tests/index-migration-atomic-swap.test.ts:37–43  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

35}
36
37async function cleanupDir(dir: string): Promise<void> {
38 try {
39 await fs.rm(dir, { recursive: true, force: true });
40 } catch {
41 // Best-effort cleanup
42 }
43}
44
45async function createMinimalIndex(contextDir: string, buildId: string): Promise<void> {
46 await fs.mkdir(contextDir, { recursive: true });

Calls

no outgoing calls

Tested by

no test coverage detected