MCPcopy
hub / github.com/colbymchenry/codegraph / write

Function write

__tests__/extension-mapping.test.ts:116–120  ·  view source on GitHub ↗
(rel: string, body: string)

Source from the content-addressed store, hash-verified

114 fs.rmSync(dir, { recursive: true, force: true });
115 });
116 const write = (rel: string, body: string) => {
117 const p = path.join(dir, rel);
118 fs.mkdirSync(path.dirname(p), { recursive: true });
119 fs.writeFileSync(p, body);
120 };
121 const indexAndQuery = async () => {
122 const cg = await CodeGraph.init(dir, { silent: true });
123 await cg.indexAll();

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected