Fixed: Argument Exception when folder cleaning on track delete

pull/3313/head
Qstick 2 years ago
parent 5296d877b0
commit c7e142c461

@ -164,7 +164,7 @@ namespace NzbDrone.Core.MediaFiles
{ {
_diskProvider.DeleteFolder(artist.Path, true); _diskProvider.DeleteFolder(artist.Path, true);
} }
else if (_diskProvider.GetFiles(albumFolder, SearchOption.AllDirectories).Empty()) else if (albumFolder.IsNotNullOrWhiteSpace() && _diskProvider.GetFiles(albumFolder, SearchOption.AllDirectories).Empty())
{ {
_diskProvider.RemoveEmptySubfolders(albumFolder); _diskProvider.RemoveEmptySubfolders(albumFolder);
} }

Loading…
Cancel
Save