mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-14 12:24:06 +01:00
Fixed: Don't try to clean Update Folder if it doesn't exist
[common]
This commit is contained in:
parent
99a7540fe4
commit
24f96fa2a4
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