mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Delete the subfolder not the parent folder
This commit is contained in:
parent
1a5eafd2b1
commit
5d05a85411
@ -428,7 +428,7 @@ public void RemoveEmptySubfolders(string path)
|
|||||||
{
|
{
|
||||||
if (files.None(f => subfolder.IsParentPath(f)))
|
if (files.None(f => subfolder.IsParentPath(f)))
|
||||||
{
|
{
|
||||||
DeleteFolder(path, false);
|
DeleteFolder(subfolder, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user