mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-21 12:03:10 +00:00
Skip hash directory for updater
This commit is contained in:
parent
feea29f3be
commit
9e87a5ce2a
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue