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

Function writeGeneratedFile

java/scripts/codegen/java.ts:210–216  ·  view source on GitHub ↗
(relativePath: string, content: string)

Source from the content-addressed store, hash-verified

208// ── File writing ─────────────────────────────────────────────────────────────
209
210async function writeGeneratedFile(relativePath: string, content: string): Promise<string> {
211 const fullPath = path.join(REPO_ROOT, relativePath);
212 await fs.mkdir(path.dirname(fullPath), { recursive: true });
213 await fs.writeFile(fullPath, content, "utf-8");
214 console.log(` ✓ ${relativePath}`);
215 return fullPath;
216}
217
218// ── Java type mapping ─────────────────────────────────────────────────────────
219

Callers 14

generateStandaloneEnumFunction · 0.70
generateStandaloneRecordFunction · 0.70
generateRpcDataClassFunction · 0.70
generateNamespaceApiFileFunction · 0.70
generateRpcRootFileFunction · 0.70
generateRpcMapperClassFunction · 0.70

Calls 4

joinMethod · 0.80
mkdirMethod · 0.65
writeFileMethod · 0.65
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…