Skip hash directory for updater

This commit is contained in:
KillzXGaming 2023-06-13 18:23:10 -04:00
parent feea29f3be
commit 9e87a5ce2a

View file

@ -91,8 +91,11 @@ namespace Updater
string dirName = new DirectoryInfo(dir).Name;
string destDir = Path.Combine(folderDir, dirName + @"\");
if (!dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase) // Let's keep the users custom hashes in tact
&& Directory.Exists(destDir))
//Skip hash directory
if (dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase))
continue;
if (Directory.Exists(destDir))
{
Directory.Delete(destDir, true);
}