Ensure the movie isn't delete when the folder isn't renamed (#491)

This commit is contained in:
Tim Turner
2017-01-27 21:24:01 -05:00
committed by GitHub
parent e2d6e39168
commit 8168cf82c5

View File

@@ -138,7 +138,9 @@ namespace NzbDrone.Core.MediaFiles
_mediaFileAttributeService.SetFilePermissions(destinationFilePath);
_diskProvider.DeleteFolder(oldMoviePath, true);
if(oldMoviePath != newMoviePath)
_diskProvider.DeleteFolder(oldMoviePath, true);
return movieFile;
}