MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / makeTempDir

Function makeTempDir

packages/node-runtime/src/database-manager.test.ts:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12const nativeBinding = path.resolve('apps/cli/native/better_sqlite3.node')
13
14function makeTempDir(): string {
15 const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
16 return fs.mkdtempSync(path.join(baseDir, 'chatlab-db-manager-'))
17}
18
19function createPathProvider(root: string): PathProvider {
20 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected