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

Function needsLegacyMigration

apps/desktop/main/paths.ts:412–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410 * 检查是否需要从 Documents/ChatLab 迁移数据
411 */
412export function needsLegacyMigration(): boolean {
413 const legacyDir = getLegacyDataDir()
414
415 // 检查 Documents/ChatLab 是否存在
416 if (fs.existsSync(legacyDir)) {
417 return true
418 }
419
420 return false
421}
422
423/**
424 * 从指定源目录迁移数据到目标目录

Callers 1

migrateDataIfNeededMethod · 0.90

Calls 1

getLegacyDataDirFunction · 0.85

Tested by

no test coverage detected