Fixed: Do not scan series folder if root folder is empty

This commit is contained in:
Mark McDowall
2015-01-19 21:55:54 -08:00
parent b2cfc065b9
commit d277420849
2 changed files with 40 additions and 11 deletions

View File

@@ -69,6 +69,12 @@ namespace NzbDrone.Core.MediaFiles
return;
}
if (_diskProvider.GetDirectories(rootFolder).Empty())
{
_logger.Warn("Series' root folder ({0}) is empty.", rootFolder);
return;
}
_logger.ProgressInfo("Scanning disk for {0}", series.Title);
_commandExecutor.PublishCommand(new CleanMediaFileDb(series.Id));