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

Function write

scripts/test-operator-journey.js:10–13  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

8const path = require('path');
9
10function write(filePath, content) {
11 fs.mkdirSync(path.dirname(filePath), { recursive: true });
12 fs.writeFileSync(filePath, content, 'utf8');
13}
14
15function withTempProject(run) {
16 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-operator-journey-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected