* 旧版存储配置文件路径(userData 根目录)
()
| 118 | * 旧版存储配置文件路径(userData 根目录) |
| 119 | */ |
| 120 | function 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 | |
| 129 | interface StorageConfig { |
| 130 | dataDir?: string |
no test coverage detected