From 6d44d6c1b7d8dc75d3d3aa55e3be4498eb044e7f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 6 Jan 2021 21:57:18 -0800 Subject: [PATCH] Fixed: Only delete update folder if it exists --- .../Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs index 4bb6ddf75..a975ae524 100644 --- a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs +++ b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupTemporaryUpdateFiles.cs @@ -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); + } } } }