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

Function makeTempDir

apps/cli/src/import/stream-import.test.ts:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected