From 38a1cf720949f4d6c477f17e62d1caa8c885ec5b Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 5 Jan 2021 22:13:41 -0500 Subject: [PATCH] Fixed: Don't try to clean Update Folder if it doesn't exist (cherry picked from commit 24f96fa2a4c1fd92f6433ec94edf6e55b7c83d89) --- .../Housekeepers/CleanupTemporaryUpdateFiles.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs index 4bb6ddf75..23383b99d 100644 --- a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs +++ b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs @@ -1,4 +1,4 @@ -using NzbDrone.Common.Disk; +using NzbDrone.Common.Disk; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Extensions; @@ -19,7 +19,10 @@ namespace NzbDrone.Core.Housekeeping.Housekeepers { var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder(); - _diskProvider.DeleteFolder(updateSandboxFolder, true); + if (_diskProvider.FolderExists(updateSandboxFolder)) + { + _diskProvider.DeleteFolder(updateSandboxFolder, true); + } } } }