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

Function write

__tests__/sync-navigation-retry.test.ts:439–444  ·  view source on GitHub ↗
(root: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

437}
438
439function write(root: string, files: Record<string, string>): void {
440 for (const [rel, content] of Object.entries(files)) {
441 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
442 fs.writeFileSync(path.join(root, rel), content);
443 }
444}
445
446/** Set a file's content, or remove the file for null. */
447function put(root: string, rel: string, content: string | null): void {

Callers 4

putFunction · 0.70
freshNavigationsFunction · 0.70
monorepoFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected