Fixed: Only delete update folder if it exists

This commit is contained in:
Mark McDowall 2021-01-06 21:57:18 -08:00
parent 7e045f3e3c
commit 6d44d6c1b7
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ namespace NzbDrone.Core.Housekeeping.Housekeepers
{ {
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder(); var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();
_diskProvider.DeleteFolder(updateSandboxFolder, true); if (_diskProvider.FolderExists(updateSandboxFolder))
{
_diskProvider.DeleteFolder(updateSandboxFolder, true);
}
} }
} }
} }