MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / createEphemeralStorageDir

Function createEphemeralStorageDir

apps/cli/src/lib/storage/ephemeral.ts:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import fs from "fs"
4
5export async function createEphemeralStorageDir(): Promise<string> {
6 const uniqueId = `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`
7 const tmpDir = path.join(os.tmpdir(), `roo-cli-${uniqueId}`)
8 await fs.promises.mkdir(tmpDir, { recursive: true })
9 return tmpDir
10}

Callers 1

activateMethod · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected