MCPcopy
hub / github.com/claude-code-best/claude-code / createTempDir

Function createTempDir

tests/mocks/file-system.ts:5–7  ·  view source on GitHub ↗
(prefix = 'claude-test-')

Source from the content-addressed store, hash-verified

3import { dirname, join } from 'node:path'
4
5export async function createTempDir(prefix = 'claude-test-'): Promise<string> {
6 return mkdtemp(join(tmpdir(), prefix))
7}
8
9export async function cleanupTempDir(dir: string): Promise<void> {
10 await rm(dir, { recursive: true, force: true })

Calls

no outgoing calls

Tested by

no test coverage detected