(config: StorageConfig)
| 148 | } |
| 149 | |
| 150 | function writeStorageConfig(config: StorageConfig): void { |
| 151 | const configPath = getStorageConfigPath() |
| 152 | try { |
| 153 | fs.writeFileSync(configPath, JSON.stringify(config, null, 2), 'utf-8') |
| 154 | } catch (error) { |
| 155 | console.error('[Paths] Error writing storage config:', error) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /** @deprecated 使用 readStorageConfig 进行迁移检测后废弃 */ |
| 160 | export function getCustomDataDir(): string | null { |
no test coverage detected