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

Function writeFile

scripts/test-map-substrate.js:20–23  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

18} = require('../core/map');
19
20function writeFile(filePath, content) {
21 fs.mkdirSync(path.dirname(filePath), { recursive: true });
22 fs.writeFileSync(filePath, content, 'utf8');
23}
24
25function runCli(rootDir, args) {
26 return childProcess.execFileSync(process.execPath, [

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected