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

Function ensureDbDir

apps/desktop/main/database/core.ts:38–40  ·  view source on GitHub ↗

* 确保数据库目录存在

()

Source from the content-addressed store, hash-verified

36 * 确保数据库目录存在
37 */
38function ensureDbDir(): void {
39 ensureDir(getDbDir())
40}
41
42/**
43 * 生成唯一的会话ID

Callers 3

createDatabaseFunction · 0.85
getDbDirectoryFunction · 0.85
checkMigrationNeededFunction · 0.85

Calls 2

ensureDirFunction · 0.90
getDbDirFunction · 0.70

Tested by

no test coverage detected