Fixed: Moving series folders in subfolders of the root folder when destination subfolder was missing

This commit is contained in:
Mark McDowall 2020-02-26 17:45:13 -08:00
parent bcc8b655f7
commit 88b1c8fc3e
1 changed files with 3 additions and 0 deletions

View File

@ -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);