mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Fixed: Moving artist folders in subfolders of the root folder when destination subfolder was missing
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
812e4cac51
commit
04aebab774
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ namespace NzbDrone.Core.Music
|
|||
{
|
||||
_rootFolderWatchingService.ReportFileSystemChangeBeginning(sourcePath, destinationPath);
|
||||
|
||||
// Ensure the parent of the artist 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}", artist.Name, artist.Path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue