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

Function write

__tests__/ui-map-api.test.ts:77–81  ·  view source on GitHub ↗
(root: string, rel: string, body: string)

Source from the content-addressed store, hash-verified

75}
76
77function write(root: string, rel: string, body: string): void {
78 const full = path.join(root, rel);
79 fs.mkdirSync(path.dirname(full), { recursive: true });
80 fs.writeFileSync(full, body);
81}
82
83beforeAll(async () => {
84 tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-ui-map-'));

Callers 1

ui-map-api.test.tsFile · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected