Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
38
function
ensureDbDir(): void {
39
ensureDir(getDbDir())
40
}
41
42
/**
43
* 生成唯一的会话ID
Callers
3
createDatabase
Function · 0.85
getDbDirectory
Function · 0.85
checkMigrationNeeded
Function · 0.85
Calls
2
ensureDir
Function · 0.90
getDbDir
Function · 0.70
Tested by
no test coverage detected