mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Fixed: Ignore IOException deleting download folder after import
Closes #5937
This commit is contained in:
parent
8aa872edf4
commit
d05cb40088
@ -212,7 +212,15 @@ private List<ImportResult> ProcessFolder(DirectoryInfo directoryInfo, ImportMode
|
||||
ShouldDeleteFolder(directoryInfo, series))
|
||||
{
|
||||
_logger.Debug("Deleting folder after importing valid files");
|
||||
_diskProvider.DeleteFolder(directoryInfo.FullName, true);
|
||||
|
||||
try
|
||||
{
|
||||
_diskProvider.DeleteFolder(directoryInfo.FullName, true);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
_logger.Debug(e, "Unable to delete folder after importing: {0}", e.Message);
|
||||
}
|
||||
}
|
||||
else if (importResults.Empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user