1919package com.spoiligaming.explorer
2020
2121import com.spoiligaming.explorer.settings.util.AppStoragePaths
22- import com.spoiligaming.explorer.util.FirstRunManager
2322import java.io.File
2423import java.nio.file.Files
2524import java.nio.file.StandardCopyOption
@@ -43,35 +42,6 @@ internal object StartupAppDataMigration {
4342
4443 val specs =
4544 listOf (
46- MigrationSpec (
47- name = " LegacyLocalConfigJsonToPlatformSettings" ,
48- sourceDir = AppStoragePaths .legacyConfigDir,
49- targetDir = AppStoragePaths .platformSettingsDir,
50- sourceFilter = { it.isFile && it.extension.equals(" json" , ignoreCase = true ) },
51- deleteSourceDirectoryWhenFinished = false ,
52- ),
53- MigrationSpec (
54- name = " LegacyLocalConfigMarkerToPlatformConfigRoot" ,
55- sourceDir = AppStoragePaths .legacyConfigDir,
56- targetDir = AppStoragePaths .platformConfigRootDir,
57- sourceFilter = { it.isFile && it.name.equals(FirstRunManager .MARKER_NAME , ignoreCase = true ) },
58- deleteSourceDirectoryWhenFinished = false ,
59- ),
60- MigrationSpec (
61- name = " LegacyLocalConfigRemainderToPlatformConfigRoot" ,
62- sourceDir = AppStoragePaths .legacyConfigDir,
63- targetDir = AppStoragePaths .platformConfigRootDir,
64- sourceFilter = {
65- it.isFile &&
66- ! it.extension.equals(" json" , ignoreCase = true ) &&
67- ! it.name.equals(FirstRunManager .MARKER_NAME , ignoreCase = true )
68- },
69- ),
70- MigrationSpec (
71- name = " LegacyLocalLogsToPlatformLogs" ,
72- sourceDir = AppStoragePaths .legacyLogsDir,
73- targetDir = AppStoragePaths .platformLogsDir,
74- ),
7545 MigrationSpec (
7646 name = " LegacyNamedPlatformConfigRootToPreferredConfigRoot" ,
7747 sourceDir = AppStoragePaths .legacyNamedPlatformConfigRootDir,
0 commit comments