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

Function write

__tests__/sync-synthesis-inputs.test.ts:45–50  ·  view source on GitHub ↗
(root: string, files: Files)

Source from the content-addressed store, hash-verified

43});
44
45function write(root: string, files: Files): void {
46 for (const [file, text] of Object.entries(files)) {
47 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
48 fs.writeFileSync(path.join(root, file), text);
49 }
50}
51
52async function indexed(files: Files): Promise<{ root: string; graph: CodeGraph }> {
53 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-sync-synth-inputs-'));

Callers 2

indexedFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected