diff --git a/Delete-By-Distinct/DeleteByDistinct.cs b/Delete-By-Distinct/DeleteByDistinct.cs index 6492e72..63bff3c 100644 --- a/Delete-By-Distinct/DeleteByDistinct.cs +++ b/Delete-By-Distinct/DeleteByDistinct.cs @@ -139,11 +139,12 @@ public class DeleteByDistinct File.WriteAllLines(Path.Combine(directory, logFile), deletedDirectories.Distinct()); } } - logFile = $"{ticks}-{variable}-Files-B.lsv"; - if (!logOnly) - File.WriteAllLines(Path.Combine(directory, logFile), renameFiles.Select(l => l.Source)); - if (renameFiles.Any() && !logOnly) + if (!logOnly && renameFiles.Any()) { + logFile = $"{ticks}-{variable}-Files-B.lsv"; + File.WriteAllLines(Path.Combine(directory, logFile), renameFiles.Select(l => l.Source)); + logFile = $"{ticks}-{variable}-Files-C.lsv"; + File.WriteAllLines(Path.Combine(directory, logFile), renameFiles.Select(l => l.Destination)); log.Information($"Ready to rename to match {renameFiles.Count} from {variable} {appSettings.SearchPattern} file(s)? See <{logFile}>"); for (int y = 0; y < int.MaxValue; y++) { diff --git a/Delete-By-Distinct/appsettings.Development.json b/Delete-By-Distinct/appsettings.Development.json index 7865dac..ad9619a 100644 --- a/Delete-By-Distinct/appsettings.Development.json +++ b/Delete-By-Distinct/appsettings.Development.json @@ -6,10 +6,5 @@ }, "Serilog": { "MinimumLevel": "Debug" - }, - "Windows": { - "Configuration": { - "VerifyToSeason": [] - } } } \ No newline at end of file diff --git a/Move-By-Id/Move-By-Id.csproj b/Move-By-Id/Move-By-Id.csproj index a7da0e4..b18a8b7 100644 --- a/Move-By-Id/Move-By-Id.csproj +++ b/Move-By-Id/Move-By-Id.csproj @@ -1,4 +1,4 @@ - + enable 10.0 @@ -6,6 +6,7 @@ Exe win-x64 net7.0 + ce31220e-ef92-4e68-89c5-91b027a94dca Phares.View.by.Distance.Move.By.Id diff --git a/Move-By-Id/appsettings.Development.json b/Move-By-Id/appsettings.Development.json index 93a5183..ad9619a 100644 --- a/Move-By-Id/appsettings.Development.json +++ b/Move-By-Id/appsettings.Development.json @@ -1,20 +1,10 @@ { - "ComparePathsFile": "C:/Users/mikep/AppData/Local/PharesApps/Drag-Drop-Explorer/2023_05/638105806929278358.json", - "MoveTo": "L", "Logging": { "LogLevel": { "Log4netProvider": "Debug" } }, - "MaxDegreeOfParallelism": 6, - "MaxMinutesDelta": 2, "Serilog": { "MinimumLevel": "Debug" - }, - "Windows": { - "Configuration": { - "RootDirectory": "C:/", - "VerifyToSeason": [] - } } } \ No newline at end of file diff --git a/Rename/Rename.cs b/Rename/Rename.cs index 7578c5a..79091b4 100644 --- a/Rename/Rename.cs +++ b/Rename/Rename.cs @@ -286,6 +286,11 @@ public class Rename continue; distinct.Add(checkFile); results.Add(new(fileHolder, checkFile)); + if (ffmpegFiles is not null) + { + foreach (string ffmpegFile in ffmpegFiles) + File.Delete(ffmpegFile); + } continue; } if (id is null)