mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +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 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 a new issue