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

Function write

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

Source from the content-addressed store, hash-verified

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