1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-28 23:07:13 -04:00

Fixed recursion issue when emptying recycle bin

This commit is contained in:
Taloth Saldono
2020-05-16 19:08:55 +02:00
committed by Qstick
parent 83679214b3
commit e8e852100c
3 changed files with 49 additions and 12 deletions
@@ -206,14 +206,12 @@ namespace NzbDrone.Core.MediaFiles
{
if (_configService.DeleteEmptyFolders)
{
if (_diskProvider.GetFiles(path, SearchOption.AllDirectories).Empty())
_diskProvider.RemoveEmptySubfolders(path);
if (_diskProvider.FolderEmpty(path))
{
_diskProvider.DeleteFolder(path, true);
}
else
{
_diskProvider.RemoveEmptySubfolders(path);
}
}
}