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

Function write

__tests__/sync-default-export-change.test.ts:57–62  ·  view source on GitHub ↗
(root: string, files: Files)

Source from the content-addressed store, hash-verified

55}
56
57function write(root: string, files: Files): void {
58 for (const [file, text] of Object.entries(files)) {
59 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
60 fs.writeFileSync(path.join(root, file), text);
61 }
62}
63
64async function index(root: string): Promise<CodeGraph> {
65 const graph = await CodeGraph.init(root, { index: true });

Callers 1

syncEditFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected