This commit is contained in:
kawaiizenbo 2021-09-19 00:11:08 -07:00
parent 4a06940a08
commit c1b506c129

View file

@ -53,6 +53,18 @@ namespace IPASorter
foreach (IPAFile i in files) foreach (IPAFile i in files)
{ {
Console.WriteLine($"checking against {i.path} ({i.md5sum})"); Console.WriteLine($"checking against {i.path} ({i.md5sum})");
foreach (IPAFile j in files)
{
//Console.WriteLine($"checking {j.path} ({j.md5sum})");
if(i.md5sum == j.md5sum && i.path != j.path)
{
Console.WriteLine("sound the alarms! these are the same file!!!!!!");
files.Remove(j);
File.Delete(j.path);
NewFilesEnumerater();
return;
}
}
} }
} }
@ -89,6 +101,26 @@ namespace IPASorter
} }
} }
} }
static void NewFilesEnumerater()
{
foreach (IPAFile i in files)
{
Console.WriteLine($"checking against {i.path} ({i.md5sum})");
foreach (IPAFile j in files)
{
//Console.WriteLine($"checking {j.path} ({j.md5sum})");
if (i.md5sum == j.md5sum && i.path != j.path)
{
Console.WriteLine("sound the alarms! these are the same file!!!!!!");
files.Remove(j);
File.Delete(j.path);
NewFilesEnumerater();
break;
}
}
}
}
} }
} }