File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Source/NETworkManager.Settings Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,11 @@ public static void Load()
152152 Save ( ) ;
153153
154154 // Backup the old XML file with timestamp to avoid overwriting existing backups
155+ // If a backup with the same timestamp exists (unlikely), it will be overwritten
156+ // since it represents the same migration attempt
155157 var backupFilePath = Path . Combine ( GetSettingsFolderLocation ( ) ,
156158 $ "{ SettingsFileName } _{ TimestampHelper . GetTimestamp ( ) } { LegacySettingsFileExtension } .backup") ;
157- File . Copy ( legacyFilePath , backupFilePath , false ) ;
159+ File . Copy ( legacyFilePath , backupFilePath , true ) ;
158160 Log . Info ( $ "Legacy XML settings file backed up to: { backupFilePath } ") ;
159161
160162 // Note: The original XML file is intentionally not deleted to allow users to revert if needed.
You can’t perform that action at this time.
0 commit comments