From 460689841a23c24b3be6842885f65eb9e5c9e017 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 13 Jun 2020 14:44:52 +0200 Subject: [PATCH] Allow update operation to handle official plugins --- ArchiSteamFarm/ASF.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/ASF.cs b/ArchiSteamFarm/ASF.cs index 4df9a4a4e..4e4b72216 100644 --- a/ArchiSteamFarm/ASF.cs +++ b/ArchiSteamFarm/ASF.cs @@ -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