MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / tempDir

Function tempDir

__tests__/daemon-proof.test.ts:42–46  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

40});
41
42function tempDir(prefix: string): string {
43 const dir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), prefix)));
44 cleanups.push(() => fs.rmSync(dir, { recursive: true, force: true }));
45 return dir;
46}
47
48describe('the daemon key (#3284)', () => {
49 it('lives in this user\'s ~/.codegraph', () => {

Callers 4

uniqueSocketPathFunction · 0.70
daemonOnFunction · 0.70
indexedProjectFunction · 0.70

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected