Skip hash directory for updater
This commit is contained in:
parent
feea29f3be
commit
9e87a5ce2a
@ -91,8 +91,11 @@ namespace Updater
|
|||||||
string dirName = new DirectoryInfo(dir).Name;
|
string dirName = new DirectoryInfo(dir).Name;
|
||||||
string destDir = Path.Combine(folderDir, dirName + @"\");
|
string destDir = Path.Combine(folderDir, dirName + @"\");
|
||||||
|
|
||||||
if (!dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase) // Let's keep the users custom hashes in tact
|
//Skip hash directory
|
||||||
&& Directory.Exists(destDir))
|
if (dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (Directory.Exists(destDir))
|
||||||
{
|
{
|
||||||
Directory.Delete(destDir, true);
|
Directory.Delete(destDir, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user