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

Function tempDir

__tests__/src-build-folders.test.ts:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39});
40
41const tempDir = (): string => {
42 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-src-build-'));
43 dirs.push(dir);
44 return dir;
45};
46
47const write = (dir: string, files: Record<string, string>): void => {
48 for (const [rel, content] of Object.entries(files)) {

Callers 2

scopeFunction · 0.70

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected