Delete Subfolder after import

pull/3113/head
Mark McDowall 12 years ago
parent bc7e543c4d
commit 14853e7e3c

@ -55,6 +55,11 @@ namespace NzbDrone.Core.MediaFiles
if (!_seriesService.SeriesPathExists(subfolder))
{
ProcessSubFolder(new DirectoryInfo(subfolder));
if (_diskProvider.GetDirectorySize(subfolder) < 50.Megabytes())
{
_diskProvider.DeleteFolder(subfolder, true);
}
}
}
catch (Exception e)

Loading…
Cancel
Save