MCPcopy Index your code
hub / github.com/getagentseal/codeburn / writeFile

Function writeFile

tests/optimize-fs.test.ts:45–48  ·  view source on GitHub ↗
(path: string, content: string)

Source from the content-addressed store, hash-verified

43}
44
45function writeFile(path: string, content: string): void {
46 mkdirSync(join(path, '..'), { recursive: true })
47 writeFileSync(path, content)
48}
49
50function touchOld(path: string, daysAgo: number): void {
51 const past = new Date(Date.now() - daysAgo * 24 * 60 * 60 * 1000)

Callers 15

persistCodeburnPathFunction · 0.85
cacheRateFunction · 0.85
writeCachedResultsFunction · 0.85
saveConfigFunction · 0.85
fetchAndCachePricingFunction · 0.85
exportCsvFunction · 0.85
exportJsonFunction · 0.85
writeJsonFunction · 0.85
loadOrCreateIdentityFunction · 0.85
writeRawCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected