mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 23:45:46 +02:00
Ensure the movie isn't delete when the folder isn't renamed (#491)
This commit is contained in:
@@ -138,7 +138,9 @@ namespace NzbDrone.Core.MediaFiles
|
||||
|
||||
_mediaFileAttributeService.SetFilePermissions(destinationFilePath);
|
||||
|
||||
_diskProvider.DeleteFolder(oldMoviePath, true);
|
||||
|
||||
if(oldMoviePath != newMoviePath)
|
||||
_diskProvider.DeleteFolder(oldMoviePath, true);
|
||||
|
||||
return movieFile;
|
||||
}
|
||||
|
Reference in New Issue
Block a user