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

Method ensureDir

packages/node-runtime/src/ai/chats.ts:122–126  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

120 }
121
122 private ensureDir(dir: string): void {
123 if (!fs.existsSync(dir)) {
124 fs.mkdirSync(dir, { recursive: true })
125 }
126 }
127
128 private getDb(): Database.Database {
129 if (this.db) return this.db

Callers 1

getDbMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected