Do not create .duplicate files anymore.

Just warn in log and delete (or attempt to delete)
This commit is contained in:
Glax 2025-02-09 17:57:08 +01:00
parent edacaaba8a
commit bb8a514830

View File

@ -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)