MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / writeFile

Function writeFile

packages/node-runtime/src/data-dir-switch.test.ts:21–24  ·  view source on GitHub ↗
(filePath: string, content = 'data')

Source from the content-addressed store, hash-verified

19}
20
21function writeFile(filePath: string, content = 'data'): void {
22 fs.mkdirSync(path.dirname(filePath), { recursive: true })
23 fs.writeFileSync(filePath, content, 'utf-8')
24}
25
26test('createPendingDataDirMigration records a restart-time migration without mutating config', () => {
27 const pending = createPendingDataDirMigration({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected