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

Function getCustomDataDir

apps/desktop/main/paths.ts:160–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159/** @deprecated 使用 readStorageConfig 进行迁移检测后废弃 */
160export function getCustomDataDir(): string | null {
161 const config = readStorageConfig()
162 const dataDir = config.dataDir?.trim()
163 if (!dataDir) return null
164 if (!path.isAbsolute(dataDir)) return null
165 return dataDir
166}
167
168/**
169 * 设置用户数据目录

Callers

nothing calls this directly

Calls 1

readStorageConfigFunction · 0.85

Tested by

no test coverage detected