From 11211dc2ed39c447e8bc2cf117ddb5a7f9cffc30 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Wed, 7 Feb 2018 11:08:05 +0100 Subject: [PATCH] =?UTF-8?q?Fixed:=20Error=20when=20importing=20files=20and?= =?UTF-8?q?=20old=20folder=20doesn=E2=80=99t=20exist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2485 --- src/NzbDrone.Core/MediaFiles/MovieFileMovingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MediaFiles/MovieFileMovingService.cs b/src/NzbDrone.Core/MediaFiles/MovieFileMovingService.cs index 312fda380..e5d0e1305 100644 --- a/src/NzbDrone.Core/MediaFiles/MovieFileMovingService.cs +++ b/src/NzbDrone.Core/MediaFiles/MovieFileMovingService.cs @@ -141,7 +141,7 @@ namespace NzbDrone.Core.MediaFiles _mediaFileAttributeService.SetFilePermissions(destinationFilePath); - if(oldMoviePath != newMoviePath) + if(oldMoviePath != newMoviePath && _diskProvider.FolderExists(oldMoviePath)) { //Let's move the old files before deleting the old folder. We could just do move folder, but the main file (movie file) is already moved, so eh. var files = _diskProvider.GetFiles(oldMoviePath, SearchOption.AllDirectories);