From 88b1c8fc3e30758c30bb922895823be5a9c866ce Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 26 Feb 2020 17:45:13 -0800 Subject: [PATCH] Fixed: Moving series folders in subfolders of the root folder when destination subfolder was missing --- src/NzbDrone.Core/Tv/MoveSeriesService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NzbDrone.Core/Tv/MoveSeriesService.cs b/src/NzbDrone.Core/Tv/MoveSeriesService.cs index 015b171bc..a6a66598d 100644 --- a/src/NzbDrone.Core/Tv/MoveSeriesService.cs +++ b/src/NzbDrone.Core/Tv/MoveSeriesService.cs @@ -53,6 +53,9 @@ namespace NzbDrone.Core.Tv try { + // Ensure the parent of the series folder exists, this will often just be the root folder, but + // in cases where people are using subfolders for first letter (etc) it may not yet exist. + _diskProvider.CreateFolder(new DirectoryInfo(destinationPath).Parent.FullName); _diskTransferService.TransferFolder(sourcePath, destinationPath, TransferMode.Move); _logger.ProgressInfo("{0} moved successfully to {1}", series.Title, series.Path);