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

Function makeTempDir

packages/node-runtime/src/logging/app-logger.test.ts:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { initAppLogger, appLogger } from './app-logger'
7
8function makeTempDir(): string {
9 const base = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
10 return fs.mkdtempSync(path.join(base, 'applog-'))
11}
12
13function read(file: string): string {
14 return fs.existsSync(file) ? fs.readFileSync(file, 'utf-8') : ''

Callers 1

app-logger.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected