mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 22:37:06 -04:00
Fixed: Deletion of empty episode sub folders when an episode file is deleted
This commit is contained in:
parent
3cbb489ac6
commit
dd314e1741
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ namespace NzbDrone.Common.Disk
|
||||||
|
|
||||||
public void RemoveEmptySubfolders(string path)
|
public void RemoveEmptySubfolders(string path)
|
||||||
{
|
{
|
||||||
var subfolders = GetDirectories(path);
|
var subfolders = Directory.GetDirectories(path, "*", SearchOption.AllDirectories);
|
||||||
var files = GetFiles(path, SearchOption.AllDirectories);
|
var files = GetFiles(path, SearchOption.AllDirectories);
|
||||||
|
|
||||||
foreach (var subfolder in subfolders)
|
foreach (var subfolder in subfolders)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue