MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getDbDir

Function getDbDir

apps/desktop/main/worker/workerManager.ts:89–93  ·  view source on GitHub ↗

* 获取数据库目录

()

Source from the content-addressed store, hash-verified

87 * 获取数据库目录
88 */
89function getDbDir(): string {
90 const dir = getDatabaseDir()
91 ensureDir(dir)
92 return dir
93}
94
95function assertDataDirCompatibleNow(): void {
96 assertDesktopDataDirCompatible(getPathProvider(), getDesktopAppVersion(app.getVersion()))

Callers 3

initWorkerFunction · 0.70
getDbDirectoryFunction · 0.70

Calls 2

getDatabaseDirFunction · 0.90
ensureDirFunction · 0.90

Tested by

no test coverage detected