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

Function getStorageConfigPath

apps/desktop/main/paths.ts:120–127  ·  view source on GitHub ↗

* 旧版存储配置文件路径(userData 根目录)

()

Source from the content-addressed store, hash-verified

118 * 旧版存储配置文件路径(userData 根目录)
119 */
120function getStorageConfigPath(): string {
121 try {
122 return path.join(app.getPath('userData'), STORAGE_CONFIG_FILE)
123 } catch (error) {
124 console.error('[Paths] Error getting storage config path:', error)
125 return path.join(process.cwd(), STORAGE_CONFIG_FILE)
126 }
127}
128
129interface StorageConfig {
130 dataDir?: string

Callers 2

readStorageConfigFunction · 0.85
writeStorageConfigFunction · 0.85

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected