mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Ensure the movie isn't delete when the folder isn't renamed (#491)
This commit is contained in:
parent
e2d6e39168
commit
8168cf82c5
1 changed files with 3 additions and 1 deletions
|
@ -138,7 +138,9 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
|
|
||||||
_mediaFileAttributeService.SetFilePermissions(destinationFilePath);
|
_mediaFileAttributeService.SetFilePermissions(destinationFilePath);
|
||||||
|
|
||||||
_diskProvider.DeleteFolder(oldMoviePath, true);
|
|
||||||
|
if(oldMoviePath != newMoviePath)
|
||||||
|
_diskProvider.DeleteFolder(oldMoviePath, true);
|
||||||
|
|
||||||
return movieFile;
|
return movieFile;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue