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

Function write

__tests__/c-fnptr-kernel-sweep.test.ts:43–47  ·  view source on GitHub ↗
(rel: string, body: string)

Source from the content-addressed store, hash-verified

41 });
42
43 const write = (rel: string, body: string) => {
44 const p = path.join(dir, rel);
45 fs.mkdirSync(path.dirname(p), { recursive: true });
46 fs.writeFileSync(p, body);
47 };
48
49 const indexAndCollect = async (): Promise<{ edges: EdgeRow[]; nodes: number }> => {
50 fs.rmSync(path.join(dir, '.codegraph'), { recursive: true, force: true });

Callers 1

writeFixtureFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected