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

Function write

__tests__/ui-filecode-api.test.ts:70–74  ·  view source on GitHub ↗
(root: string, rel: string, body: string)

Source from the content-addressed store, hash-verified

68}
69
70function write(root: string, rel: string, body: string): void {
71 const full = path.join(root, rel);
72 fs.mkdirSync(path.dirname(full), { recursive: true });
73 fs.writeFileSync(full, body);
74}
75
76/** Rows as `caller -> callee`, which is how the rail reads. */
77function pairs(payload: any): string[] {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected