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

Function write

scripts/test-continue-action.js:13–16  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

11const { routeAction } = require('./continue-action');
12
13function write(filePath, content) {
14 fs.mkdirSync(path.dirname(filePath), { recursive: true });
15 fs.writeFileSync(filePath, content, 'utf8');
16}
17
18function withTempProject(run) {
19 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-continue-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected