1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-02-24 15:11:27 +00:00

Fixed: Deletion of empty episode sub folders when an episode file is deleted

This commit is contained in:
Mark McDowall 2019-11-03 09:04:39 -08:00
parent 3cbb489ac6
commit dd314e1741

View file

@ -482,7 +482,7 @@ namespace NzbDrone.Common.Disk
public void RemoveEmptySubfolders(string path)
{
var subfolders = GetDirectories(path);
var subfolders = Directory.GetDirectories(path, "*", SearchOption.AllDirectories);
var files = GetFiles(path, SearchOption.AllDirectories);
foreach (var subfolder in subfolders)