MCPcopy
hub / github.com/anomalyco/opencode / writeStore

Function writeStore

packages/desktop/src/main/store-cleanup.test.ts:15–18  ·  view source on GitHub ↗
(root: string, name: string, value: string, modified: Date)

Source from the content-addressed store, hash-verified

13}
14
15async function writeStore(root: string, name: string, value: string, modified: Date) {
16 await writeFile(join(root, name), value)
17 await utimes(join(root, name), modified, modified)
18}
19
20afterEach(async () => {
21 await Promise.all(roots.splice(0).map((root) => rm(root, { recursive: true, force: true })))

Callers 1

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected