mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Thanks .NET Framework
This commit is contained in:
@@ -832,7 +832,7 @@ namespace ArchiSteamFarm {
|
||||
Directory.CreateDirectory(targetBackupDirectory);
|
||||
|
||||
string targetBackupFile = Path.Combine(targetBackupDirectory, fileName);
|
||||
File.Move(file, targetBackupFile, true);
|
||||
RuntimeCompatibility.File.Move(file, targetBackupFile, true);
|
||||
}
|
||||
|
||||
// We can now get rid of directories that are empty
|
||||
@@ -849,7 +849,7 @@ namespace ArchiSteamFarm {
|
||||
if (File.Exists(file)) {
|
||||
// This is possible only with files that we decided to leave in place during our backup function
|
||||
string targetBackupFile = file + ".bak";
|
||||
File.Move(file, targetBackupFile, true);
|
||||
RuntimeCompatibility.File.Move(file, targetBackupFile, true);
|
||||
}
|
||||
|
||||
// Check if this file requires its own folder
|
||||
|
||||
Reference in New Issue
Block a user