|
|
|
@ -84,6 +84,10 @@ namespace NzbDrone.Core.Providers.Jobs
|
|
|
|
|
|
|
|
|
|
var importedFiles = _diskScanProvider.Scan(series, subfolder);
|
|
|
|
|
importedFiles.ForEach(file => _diskScanProvider.MoveEpisodeFile(file));
|
|
|
|
|
|
|
|
|
|
//Delete the folder only if all files were removed
|
|
|
|
|
if (_diskProvider.GetFiles(subfolder, "*.*", SearchOption.AllDirectories).Length == 0)
|
|
|
|
|
_diskProvider.DeleteFolder(subfolder, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Logger.Debug("New Download Scan Job completed successfully");
|
|
|
|
|