We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493d62f commit 40fbae0Copy full SHA for 40fbae0
1 file changed
Source/NETworkManager.Settings/SettingsManager.cs
@@ -178,17 +178,12 @@ public static void Load()
178
Save();
179
180
// Create a backup of the legacy XML file and delete the original
181
- Directory.CreateDirectory(GetSettingsBackupFolderLocation());
182
-
183
- var backupFilePath = Path.Combine(GetSettingsBackupFolderLocation(),
+ Backup(legacyFilePath,
+ GetSettingsBackupFolderLocation(),
184
$"{TimestampHelper.GetTimestamp()}_{GetLegacySettingsFileName()}");
185
186
- File.Copy(legacyFilePath, backupFilePath, true);
187
+
188
File.Delete(legacyFilePath);
189
190
- Log.Info($"Legacy XML settings file backed up to: {backupFilePath}");
191
192
Log.Info("Settings migration from XML to JSON completed successfully.");
193
194
return;
0 commit comments