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

Function write

__tests__/tauri-ipc.test.ts:20–24  ·  view source on GitHub ↗
(root: string, file: string, source: string)

Source from the content-addressed store, hash-verified

18const graphs: CodeGraph[] = [];
19
20function write(root: string, file: string, source: string): void {
21 const target = path.join(root, file);
22 fs.mkdirSync(path.dirname(target), { recursive: true });
23 fs.writeFileSync(target, source);
24}
25
26async function index(files: Record<string, string>): Promise<{ root: string; graph: CodeGraph }> {
27 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-tauri-'));

Callers 2

indexFunction · 0.70
tauri-ipc.test.tsFile · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected