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

Function write

__tests__/sync-memo-lifetime.test.ts:37–42  ·  view source on GitHub ↗
(root: string, files: Files)

Source from the content-addressed store, hash-verified

35}
36
37function write(root: string, files: Files): void {
38 for (const [file, text] of Object.entries(files)) {
39 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
40 fs.writeFileSync(path.join(root, file), text);
41 }
42}
43
44async function index(root: string): Promise<CodeGraph> {
45 const graph = await CodeGraph.init(root, { index: true });

Callers 1

syncEditFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected