Individually First Pass

This commit is contained in:
2023-04-09 23:33:24 -07:00
parent f69c100669
commit da2c5b5e78
8 changed files with 646 additions and 126 deletions

View File

@ -5,6 +5,7 @@ public interface IMapLogic
const int CopyNotMappedFaces = 5;
const int ForceSingleImage = 3;
const int Individually = 6;
const int ManualCopy = 4;
const int Mapping = 1;
const int Sigma = 3;

View File

@ -106,6 +106,8 @@ internal abstract partial class XDirectory
FileInfo fileInfo = new(file);
foreach (string possible in collection)
{
if (possible == file)
continue;
possibleFileInfo = new(possible);
if (possibleFileInfo.LastWriteTime == fileInfo.LastWriteTime && possibleFileInfo.Length == fileInfo.Length)
continue;
@ -115,7 +117,7 @@ internal abstract partial class XDirectory
File.SetLastWriteTime(file, new DateTime[] { possibleFileInfo.LastWriteTime, fileInfo.LastWriteTime }.Min());
continue;
}
throw new Exception();
throw new Exception(Path.GetFileNameWithoutExtension(file));
}
}