From bb8a5148304e6859dca224d6d7509ba6c7eae9c1 Mon Sep 17 00:00:00 2001 From: Glax Date: Sun, 9 Feb 2025 17:57:08 +0100 Subject: [PATCH] Do not create .duplicate files anymore. Just warn in log and delete (or attempt to delete) --- Tranga/Jobs/JobBoss.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 4631a66..4ecf2e2 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -167,9 +167,10 @@ public class JobBoss : GlobalBase Log($"Adding Job {job}"); if (!AddJob(job, file.FullName)) //If we detect a duplicate, delete the file. { - string path = string.Concat(file.FullName, ".duplicate"); - file.MoveTo(path); - Log($"Duplicate detected or otherwise not able to add job to list.\nMoved job {job} to {path}"); + //string path = string.Concat(file.FullName, ".duplicate"); + //file.MoveTo(path); + //Log($"Duplicate detected or otherwise not able to add job to list.\nMoved job {job} to {path}"); + Log($"Duplicate detected or otherwise not able to add job to list. Removed the file {file.FullName} {job}"); } } catch (Exception e)