Delete Subfolder after import

This commit is contained in:
Mark McDowall 2013-05-15 17:29:26 -07:00
parent bc7e543c4d
commit 14853e7e3c
1 changed files with 5 additions and 0 deletions

View File

@ -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)