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

Function write

__tests__/parameter-flow.test.ts:77–82  ·  view source on GitHub ↗
(root: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

75const open: CodeGraph[] = [];
76
77function write(root: string, files: Record<string, string>): void {
78 for (const [rel, content] of Object.entries(files)) {
79 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
80 fs.writeFileSync(path.join(root, rel), content);
81 }
82}
83
84async function indexed(files: Record<string, string>): Promise<{ root: string; cg: CodeGraph }> {
85 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-parameter-flow-'));

Callers 2

indexedFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected