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

Function getElectronLegacyDataDir

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

Source from the content-addressed store, hash-verified

106 * 仅供迁移检测使用,新代码请使用 getSystemDataDir/getUserDataDir
107 */
108export function getElectronLegacyDataDir(): string {
109 try {
110 return path.join(app.getPath('userData'), 'data')
111 } catch (error) {
112 console.error('[Paths] Error getting userData path:', error)
113 return path.join(process.cwd(), 'userData', 'data')
114 }
115}
116
117/**
118 * 旧版存储配置文件路径(userData 根目录)

Callers 2

verifyDataPathFunction · 0.85

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected