|
|
@ -212,8 +212,16 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
ShouldDeleteFolder(directoryInfo, series))
|
|
|
|
ShouldDeleteFolder(directoryInfo, series))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.Debug("Deleting folder after importing valid files");
|
|
|
|
_logger.Debug("Deleting folder after importing valid files");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
_diskProvider.DeleteFolder(directoryInfo.FullName, true);
|
|
|
|
_diskProvider.DeleteFolder(directoryInfo.FullName, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (IOException e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.Debug(e, "Unable to delete folder after importing: {0}", e.Message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (importResults.Empty())
|
|
|
|
else if (importResults.Empty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
importResults.AddIfNotNull(CheckEmptyResultForIssue(directoryInfo.FullName));
|
|
|
|
importResults.AddIfNotNull(CheckEmptyResultForIssue(directoryInfo.FullName));
|
|
|
|