MCPcopy
hub / github.com/colbymchenry/codegraph / write

Function write

__tests__/android-res-exclusion.test.ts:30–34  ·  view source on GitHub ↗
(rel: string, body: string)

Source from the content-addressed store, hash-verified

28 let cg: CodeGraph;
29
30 const write = (rel: string, body: string) => {
31 const p = path.join(dir, rel);
32 fs.mkdirSync(path.dirname(p), { recursive: true });
33 fs.writeFileSync(p, body);
34 };
35
36 beforeEach(async () => {
37 dir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-android-res-'));

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected