mirror of https://github.com/lidarr/Lidarr
Fixed: Ignore IOException deleting download folder after import
(cherry picked from commit d05cb40088a51eef5a2830bf2b55f5d05955578f)
This commit is contained in:
parent
cfea62749d
commit
4bb3bfad79
|
@ -223,8 +223,16 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
ShouldDeleteFolder(directoryInfo, artist))
|
ShouldDeleteFolder(directoryInfo, artist))
|
||||||
{
|
{
|
||||||
_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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return importResults;
|
return importResults;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue