MCPcopy Create free account
hub / github.com/SethGammon/Citadel / writeFile

Function writeFile

scripts/live-github-steward-proof.js:75–78  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

73}
74
75function writeFile(filePath, content) {
76 fs.mkdirSync(path.dirname(filePath), { recursive: true });
77 fs.writeFileSync(filePath, content, 'utf8');
78}
79
80function readJson(filePath) {
81 return JSON.parse(fs.readFileSync(filePath, 'utf8'));

Callers 3

writeJsonFunction · 0.70
setupInitialRepoFunction · 0.70
createAgentPrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected