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

Function write

__tests__/cpp-template-instantiations.test.ts:35–40  ·  view source on GitHub ↗
(root: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

33}
34
35function write(root: string, files: Record<string, string>): void {
36 for (const [rel, content] of Object.entries(files)) {
37 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
38 fs.writeFileSync(path.join(root, rel), content);
39 }
40}
41
42async function opened(root: string): Promise<CodeGraph> {
43 const cg = await CodeGraph.init(root, { index: true });

Callers 3

projectFunction · 0.70
syncsFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected