()
| 133 | } |
| 134 | |
| 135 | function readStorageConfig(): StorageConfig { |
| 136 | const configPath = getStorageConfigPath() |
| 137 | if (!fs.existsSync(configPath)) return {} |
| 138 | |
| 139 | try { |
| 140 | const content = fs.readFileSync(configPath, 'utf-8') |
| 141 | const data = JSON.parse(content) as StorageConfig |
| 142 | return data || {} |
| 143 | } catch (error) { |
| 144 | console.error('[Paths] Error reading storage config:', error) |
| 145 | } |
| 146 | |
| 147 | return {} |
| 148 | } |
| 149 | |
| 150 | function writeStorageConfig(config: StorageConfig): void { |
| 151 | const configPath = getStorageConfigPath() |
no test coverage detected