Append ".failed" to job-files that werent successfully added.

This commit is contained in:
Glax 2024-10-31 20:41:46 +01:00
parent 3566ad774d
commit dc9cd4b1dd

View File

@ -167,8 +167,8 @@ public class JobBoss : GlobalBase
else
{
Log($"Adding Job {job}");
if(!AddJob(job, file.Name)) //If we detect a duplicate, delete the file.
file.Delete();
if(!AddJob(job, file.FullName)) //If we detect a duplicate, delete the file.
file.MoveTo(string.Concat(file.FullName, ".failed"));
}
}