MCPcopy Index your code
hub / github.com/github/copilot-sdk / writeGeneratedFile

Function writeGeneratedFile

scripts/codegen/utils.ts:369–374  ·  view source on GitHub ↗
(relativePath: string, content: string)

Source from the content-addressed store, hash-verified

367// ── File output ─────────────────────────────────────────────────────────────
368
369export async function writeGeneratedFile(relativePath: string, content: string): Promise<string> {
370 const fullPath = path.join(REPO_ROOT, relativePath);
371 await fs.mkdir(path.dirname(fullPath), { recursive: true });
372 await fs.writeFile(fullPath, content, "utf-8");
373 return fullPath;
374}
375
376// ── RPC schema types ────────────────────────────────────────────────────────
377

Callers 8

generateSessionEventsFunction · 0.70
generateRpcFunction · 0.70
generateSessionEventsFunction · 0.70
generateRpcFunction · 0.70
generateSessionEventsFunction · 0.70
generateRpcFunction · 0.70
generateSessionEventsFunction · 0.70
generateRpcFunction · 0.70

Calls 3

joinMethod · 0.80
mkdirMethod · 0.65
writeFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…