mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Update MarkFilesOld
This commit is contained in:
@@ -157,7 +157,15 @@ namespace Netch.Updater
|
||||
|
||||
// rename files
|
||||
foreach (var file in filesToDelete)
|
||||
File.Move(file, file + ".old");
|
||||
try
|
||||
{
|
||||
File.Move(file, file + ".old");
|
||||
}
|
||||
catch
|
||||
{
|
||||
Logging.Error($"failed to rename file \"{file}\"");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private int Extract(string destDirName, bool overwrite)
|
||||
|
||||
Reference in New Issue
Block a user