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

Function write

__tests__/sync-import-binding-retry.test.ts:112–117  ·  view source on GitHub ↗
(root: string, files: Files)

Source from the content-addressed store, hash-verified

110}
111
112function write(root: string, files: Files): void {
113 for (const [file, text] of Object.entries(files)) {
114 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
115 fs.writeFileSync(path.join(root, file), text);
116 }
117}
118
119async function index(root: string): Promise<CodeGraph> {
120 const graph = await CodeGraph.init(root, { index: true });

Callers 2

fullIndexOfFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected