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

Function write

__tests__/sync-object-members.test.ts:43–48  ·  view source on GitHub ↗
(root: string, files: Files)

Source from the content-addressed store, hash-verified

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

Callers 1

syncEditFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected