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

Function ensureDir

packages/node-runtime/src/logging/app-logger.ts:106–108  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

104}
105
106function ensureDir(dir: string): void {
107 if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true })
108}
109
110let instance: AppLogger | null = null
111

Callers 1

writeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected