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

Function write

__tests__/php-web-root-includes.test.ts:33–38  ·  view source on GitHub ↗
(dir: string, files: Files)

Source from the content-addressed store, hash-verified

31});
32
33function write(dir: string, files: Files): void {
34 for (const [rel, content] of Object.entries(files)) {
35 fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true });
36 fs.writeFileSync(path.join(dir, rel), content);
37 }
38}
39
40async function index(files: Files): Promise<CodeGraph> {
41 root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-php-web-root-'));

Callers 3

indexFunction · 0.70
webRootOfFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected