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

Function write

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

Source from the content-addressed store, hash-verified

168}
169
170function write(root: string, files: Files): void {
171 for (const [file, text] of Object.entries(files)) {
172 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
173 fs.writeFileSync(path.join(root, file), text);
174 }
175}
176
177async function index(root: string): Promise<CodeGraph> {
178 const graph = await CodeGraph.init(root, { index: true });

Callers 2

freshGraphOfFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected