From a744a5dc045f028ed96378622a020f8785092c50 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Thu, 14 Sep 2023 13:25:28 +0300 Subject: [PATCH] Delete job folder recursively --- server/Tingle.Dependabot/Workflow/UpdateRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/Tingle.Dependabot/Workflow/UpdateRunner.cs b/server/Tingle.Dependabot/Workflow/UpdateRunner.cs index 834024ac..42815f0d 100644 --- a/server/Tingle.Dependabot/Workflow/UpdateRunner.cs +++ b/server/Tingle.Dependabot/Workflow/UpdateRunner.cs @@ -136,7 +136,7 @@ public async Task DeleteAsync(UpdateJob job, CancellationToken cancellationToken var jobDirectory = Path.Join(options.WorkingDirectory, job.Id); if (Directory.Exists(jobDirectory)) { - Directory.Delete(jobDirectory); + Directory.Delete(jobDirectory, recursive: true); } // get the period