Removed Comments
This commit is contained in:
@ -65,31 +65,22 @@ public class DeleteByDistinct
|
||||
checkLength = 1;
|
||||
else
|
||||
checkLength = fileInfo.Length;
|
||||
// checkLength = (long)Math.Round((double)(fileInfo.Length / 1000));
|
||||
if (!fileSizeToCollection.TryGetValue(checkLength, out fileTicksToNames))
|
||||
{
|
||||
fileSizeToCollection.Add(checkLength, new());
|
||||
if (!fileSizeToCollection.TryGetValue(checkLength, out fileTicksToNames))
|
||||
throw new Exception();
|
||||
}
|
||||
// if (!fileTicksToNames.TryGetValue(fileInfo.LastWriteTime.Ticks, out fileNames))
|
||||
// {
|
||||
// fileTicksToNames.Add(fileInfo.LastWriteTime.Ticks, new());
|
||||
// if (!fileTicksToNames.TryGetValue(fileInfo.LastWriteTime.Ticks, out fileNames))
|
||||
// throw new Exception();
|
||||
// }
|
||||
if (appSettings.RecycleOption)
|
||||
checkTicks = 1;
|
||||
else
|
||||
checkTicks = new DateTime(ticks).Ticks;
|
||||
// checkTicks = new DateTime(fileInfo.LastWriteTime.Year, fileInfo.LastWriteTime.Month, fileInfo.LastWriteTime.Day).Ticks;
|
||||
if (!fileTicksToNames.TryGetValue(checkTicks, out fileNames))
|
||||
{
|
||||
fileTicksToNames.Add(checkTicks, new());
|
||||
if (!fileTicksToNames.TryGetValue(checkTicks, out fileNames))
|
||||
throw new Exception();
|
||||
}
|
||||
// checkName = fileInfo.Name[..10];
|
||||
checkName = fileInfo.Name.ToLower().Replace(".jpeg", ".jpg");
|
||||
if (fileNames.Contains(checkName))
|
||||
deletedFiles.Add(file);
|
||||
|
Reference in New Issue
Block a user