d
This commit is contained in:
parent
4a06940a08
commit
c1b506c129
1 changed files with 32 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue