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

Function tempDir

__tests__/status-sparse-checkout.test.ts:41–45  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

39 fs.writeFileSync(path.join(project, rel), body);
40 };
41 const tempDir = (name: string) => {
42 const dir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), name)));
43 made.push(dir);
44 return dir;
45 };
46 const index = async () => {
47 cg = CodeGraph.initSync(project);
48 await cg.indexAll();

Callers 1

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected