1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

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

View File

@ -19,7 +19,10 @@ public void Clean()
{
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();
_diskProvider.DeleteFolder(updateSandboxFolder, true);
if (_diskProvider.FolderExists(updateSandboxFolder))
{
_diskProvider.DeleteFolder(updateSandboxFolder, true);
}
}
}
}