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

Function createTempDir

tests/relationship-sidecar.test.ts:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10} from '../src/constants/codebase-context.js';
11
12async function createTempDir(): Promise<string> {
13 const tmpDir = path.join(process.cwd(), `.tmp-rel-test-${Date.now()}`);
14 await fs.mkdir(tmpDir, { recursive: true });
15 return tmpDir;
16}
17
18async function cleanupDir(dir: string): Promise<void> {
19 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected