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

Function write

__tests__/php-import-alias-static-resolution.test.ts:46–50  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

44 });
45
46 const write = (file: string, source: string) => {
47 const target = path.join(dir, file);
48 fs.mkdirSync(path.dirname(target), { recursive: true });
49 fs.writeFileSync(target, source);
50 };
51
52 const controllerPath = 'app/Http/Controllers/Backend/SettleController.php';
53 const servicePath = 'app/Services/SettleService.php';

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected