mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-25 09:54:11 +01:00
Fixed: Don't try to clean Update Folder if it doesn't exist
(cherry picked from commit 24f96fa2a4c1fd92f6433ec94edf6e55b7c83d89)
This commit is contained in:
parent
9cef4545e4
commit
38a1cf7209
1 changed files with 5 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
|
|
@ -19,7 +19,10 @@ public void Clean()
|
|||
{
|
||||
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();
|
||||
|
||||
_diskProvider.DeleteFolder(updateSandboxFolder, true);
|
||||
if (_diskProvider.FolderExists(updateSandboxFolder))
|
||||
{
|
||||
_diskProvider.DeleteFolder(updateSandboxFolder, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue