mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07: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.EnvironmentInfo;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue