Fix random logic

This commit is contained in:
2023-08-12 08:30:08 -07:00
parent b3da09c757
commit 2f5d309ed1
10 changed files with 68 additions and 45 deletions

View File

@ -194,7 +194,7 @@ public partial class E_Distance : IDistance<MetadataExtractor.Directory>
collection = collection.OrderBy(l => l.Length).ToList();
for (int i = 0; i < collection.Count - 1; i++)
{
checkFile = string.Concat(collection[i].FullName, ".dup");
checkFile = $"{collection[i].FullName}.dup";
if (File.Exists(checkFile))
continue;
File.Move(collection[i].FullName, checkFile);