PhotoPrism
This commit is contained in:
@ -70,7 +70,8 @@ public class DeleteByDistinct
|
||||
// if (!fileTicksToNames.TryGetValue(fileInfo.LastWriteTime.Ticks, out fileNames))
|
||||
// throw new Exception();
|
||||
// }
|
||||
checkDate = new DateTime(fileInfo.LastWriteTime.Year, fileInfo.LastWriteTime.Month, fileInfo.LastWriteTime.Day);
|
||||
checkDate = new DateTime(ticks);
|
||||
// checkDate = new DateTime(fileInfo.LastWriteTime.Year, fileInfo.LastWriteTime.Month, fileInfo.LastWriteTime.Day);
|
||||
if (!fileTicksToNames.TryGetValue(checkDate.Ticks, out fileNames))
|
||||
{
|
||||
fileTicksToNames.Add(checkDate.Ticks, new());
|
||||
@ -103,7 +104,11 @@ public class DeleteByDistinct
|
||||
if (consoleKey is not null && consoleKey.Value == ConsoleKey.Y)
|
||||
{
|
||||
foreach (string file in deletedFiles)
|
||||
File.Delete(file);
|
||||
{
|
||||
try
|
||||
{ File.Delete(file); }
|
||||
catch (Exception) { }
|
||||
}
|
||||
totalSeconds = (int)Math.Floor(new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds);
|
||||
message = $") Looking for empty directories from <{directory}> - {totalSeconds} total second(s)";
|
||||
progressBar = new(4, message, options);
|
||||
|
@ -1,23 +1,21 @@
|
||||
{
|
||||
"xCompareRootDirectory": "",
|
||||
"CompareRootDirectory": "C:/Tmp-x",
|
||||
"CompareRootDirectory": "F:/7) Question/- - - Images",
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Log4netProvider": "Debug"
|
||||
}
|
||||
},
|
||||
"MaxDegreeOfParallelism": 6,
|
||||
"SearchPattern": "*.jpg",
|
||||
"SearchPattern": "*",
|
||||
"Serilog": {
|
||||
"MinimumLevel": "Debug"
|
||||
},
|
||||
"Windows": {
|
||||
"Configuration": {
|
||||
"xRootDirectory": "C:/Tmp-x",
|
||||
"xxRootDirectory": "D:/Tmp/Phares/Compare/Not-Copy-Copy-4d49b68",
|
||||
"xxxRootDirectory": "F:/Tmp/Phares/Compare",
|
||||
"xxxxRootDirectory": "E:/Tmp/Phares/Compare",
|
||||
"RootDirectory": "F:/Tmp/Phares/Compare/Images-4d49b68",
|
||||
"RootDirectory": "D:/2) Images B/Corrupt",
|
||||
"xxRootDirectory": "D:/2) Images B/Not-Copy-Copy-37c7b67",
|
||||
"xxxRootDirectory": "G:/1) Images A/Images-37c7b67",
|
||||
"VerifyToSeason": [
|
||||
". 2000",
|
||||
". 2001",
|
||||
|
@ -52,7 +52,7 @@
|
||||
"WorkingDirectoryName": "PharesApps",
|
||||
"Windows": {
|
||||
"Configuration": {
|
||||
"DateGroup": "2022-12-21",
|
||||
"DateGroup": "2022-12-25",
|
||||
"DiffPropertyDirectory": "",
|
||||
"FileNameDirectorySeparator": ".Z.",
|
||||
"ForcePropertyLastWriteTimeToCreationTime": false,
|
||||
@ -65,7 +65,7 @@
|
||||
"ResultCollection": "[]",
|
||||
"ResultContent": "()",
|
||||
"ResultSingleton": "{}",
|
||||
"RootDirectory": "C:/Tmp/Phares/Compare/Images-4d49b68",
|
||||
"RootDirectory": "C:/Tmp/Phares/Compare/Images-37c7b67",
|
||||
"WriteBitmapDataBytes": false,
|
||||
"IgnoreExtensions": [
|
||||
".gif",
|
||||
|
Reference in New Issue
Block a user