From a8eb674071f12ec7975eda4d7cd4b00e513bc79d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 18 Aug 2023 16:56:32 -0700 Subject: [PATCH] Fixed: Ignore IOException deleting download folder after import (cherry picked from commit d05cb40088a51eef5a2830bf2b55f5d05955578f) --- .../MediaFiles/DownloadedBooksImportService.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MediaFiles/DownloadedBooksImportService.cs b/src/NzbDrone.Core/MediaFiles/DownloadedBooksImportService.cs index 21def8e48..5f003fa33 100644 --- a/src/NzbDrone.Core/MediaFiles/DownloadedBooksImportService.cs +++ b/src/NzbDrone.Core/MediaFiles/DownloadedBooksImportService.cs @@ -231,7 +231,15 @@ namespace NzbDrone.Core.MediaFiles ShouldDeleteFolder(directoryInfo)) { _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); + } } return importResults;