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:
parent
7e045f3e3c
commit
6d44d6c1b7
@ -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 New Issue
Block a user