Delete Subfolder after import
This commit is contained in:
parent
bc7e543c4d
commit
14853e7e3c
|
@ -55,6 +55,11 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
if (!_seriesService.SeriesPathExists(subfolder))
|
if (!_seriesService.SeriesPathExists(subfolder))
|
||||||
{
|
{
|
||||||
ProcessSubFolder(new DirectoryInfo(subfolder));
|
ProcessSubFolder(new DirectoryInfo(subfolder));
|
||||||
|
|
||||||
|
if (_diskProvider.GetDirectorySize(subfolder) < 50.Megabytes())
|
||||||
|
{
|
||||||
|
_diskProvider.DeleteFolder(subfolder, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
Loading…
Reference in New Issue