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

Function write

scripts/test-memory-blocks.js:18–21  ·  view source on GitHub ↗
(filePath, text)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected