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

Function writeStorageConfig

apps/desktop/main/paths.ts:150–157  ·  view source on GitHub ↗
(config: StorageConfig)

Source from the content-addressed store, hash-verified

148}
149
150function 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 进行迁移检测后废弃 */
160export function getCustomDataDir(): string | null {

Callers 4

setCustomDataDirFunction · 0.85
clearPendingMigrationFunction · 0.85
markPendingDeleteDirFunction · 0.85
cleanupPendingDeleteDirFunction · 0.85

Calls 2

getStorageConfigPathFunction · 0.85
errorMethod · 0.65

Tested by

no test coverage detected