()
| 158 | |
| 159 | /** @deprecated 使用 readStorageConfig 进行迁移检测后废弃 */ |
| 160 | export 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 | * 设置用户数据目录 |
nothing calls this directly
no test coverage detected