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

Function write

scripts/test-package-delivery.js:17–20  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

15const { validateExitEvidence } = require('../core/evidence/contracts');
16
17function write(filePath, content) {
18 fs.mkdirSync(path.dirname(filePath), { recursive: true });
19 fs.writeFileSync(filePath, content, 'utf8');
20}
21
22function withTempProject(run) {
23 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-package-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected