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

Function tempRoot

packages/desktop/src/main/store-cleanup.test.ts:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const roots: string[] = []
8
9async function tempRoot() {
10 const root = await mkdtemp(join(tmpdir(), "opencode-store-cleanup-"))
11 roots.push(root)
12 return root
13}
14
15async function writeStore(root: string, name: string, value: string, modified: Date) {
16 await writeFile(join(root, name), value)

Callers 1

Calls 3

joinFunction · 0.85
pushMethod · 0.80
tmpdirFunction · 0.50

Tested by

no test coverage detected