mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 03:17:33 +01:00
Append ".failed" to job-files that werent successfully added.
This commit is contained in:
parent
3566ad774d
commit
dc9cd4b1dd
@ -167,8 +167,8 @@ public class JobBoss : GlobalBase
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log($"Adding Job {job}");
|
Log($"Adding Job {job}");
|
||||||
if(!AddJob(job, file.Name)) //If we detect a duplicate, delete the file.
|
if(!AddJob(job, file.FullName)) //If we detect a duplicate, delete the file.
|
||||||
file.Delete();
|
file.MoveTo(string.Concat(file.FullName, ".failed"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user