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

Function writeFile

scripts/test-organize-enforce.js:51–55  ·  view source on GitHub ↗
(sandboxDir, relPath, content)

Source from the content-addressed store, hash-verified

49}
50
51function writeFile(sandboxDir, relPath, content) {
52 const full = path.join(sandboxDir, relPath);
53 fs.mkdirSync(path.dirname(full), { recursive: true });
54 fs.writeFileSync(full, content || '// placeholder');
55}
56
57function fireHook(payload, sandboxDir) {
58 const input = JSON.stringify(payload);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected