We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7498a50 commit cbef6c7Copy full SHA for cbef6c7
1 file changed
src/WebSite/Jobs/FileCleanerJob.cs
@@ -7,6 +7,10 @@ public class FileCleanerJob(IWebHostEnvironment env) : IJob
7
public Task Execute(IJobExecutionContext context)
8
{
9
var directoryPath = Path.Combine(env.WebRootPath, "IconFolder");
10
+ if (!Directory.Exists(directoryPath))
11
+ {
12
+ return Task.CompletedTask;
13
+ }
14
try
15
16
var files = Directory.GetFiles(directoryPath);
0 commit comments