Skip to content

Commit

Permalink
Don't move NLog.config during update, #586
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Aug 5, 2017
1 parent 6160957 commit 021e8d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ArchiSteamFarm/ASF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,14 @@ private static void UpdateFromArchive(ZipArchive archive, string targetDirectory
// Move top-level runtime in-use files to other directory
// We must do it in order to not crash at later stage - all libraries/executables must keep original names
foreach (string file in Directory.EnumerateFiles(targetDirectory)) {
string target = Path.Combine(backupDirectory, Path.GetFileName(file));
string fileName = Path.GetFileName(file);
switch (fileName) {
// Files that we want to keep in original directory
case "NLog.config":
continue;
}

string target = Path.Combine(backupDirectory, fileName);
File.Move(file, target);
}

Expand Down

0 comments on commit 021e8d2

Please sign in to comment.