mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Allow update operation to handle official plugins
This commit is contained in:
@@ -832,7 +832,7 @@ namespace ArchiSteamFarm {
|
||||
Directory.CreateDirectory(targetBackupDirectory);
|
||||
|
||||
string targetBackupFile = Path.Combine(targetBackupDirectory, fileName);
|
||||
File.Move(file, targetBackupFile);
|
||||
File.Move(file, targetBackupFile, true);
|
||||
}
|
||||
|
||||
// We can now get rid of directories that are empty
|
||||
@@ -848,8 +848,8 @@ namespace ArchiSteamFarm {
|
||||
|
||||
if (File.Exists(file)) {
|
||||
// This is possible only with files that we decided to leave in place during our backup function
|
||||
// Those files should never be overwritten with anything, ignore
|
||||
continue;
|
||||
string targetBackupFile = file + ".bak";
|
||||
File.Move(file, targetBackupFile, true);
|
||||
}
|
||||
|
||||
// Check if this file requires its own folder
|
||||
|
||||
Reference in New Issue
Block a user