MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / makeTempDir

Function makeTempDir

apps/cli/src/runtime-compat.test.ts:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { assertCliDataDirCompatible } from './runtime-compat'
8
9function makeTempDir(): string {
10 const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
11 return fs.mkdtempSync(path.join(baseDir, 'chatlab-cli-compat-'))
12}
13
14function makePathProvider(userDataDir: string): PathProvider {
15 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected