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

Function write

__tests__/sync-module-config-change.test.ts:40–45  ·  view source on GitHub ↗
(root: string, files: Files)

Source from the content-addressed store, hash-verified

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

Callers 3

fullIndexWithDbFunction · 0.70
syncEditFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected