mirror of
https://github.com/Radarr/Radarr
synced 2026-02-14 18:53:57 +01: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 @@ private MovieFile TransferFile(MovieFile movieFile, Movie movie, string destinat
|
|||
|
||||
_mediaFileAttributeService.SetFilePermissions(destinationFilePath);
|
||||
|
||||
_diskProvider.DeleteFolder(oldMoviePath, true);
|
||||
|
||||
if(oldMoviePath != newMoviePath)
|
||||
_diskProvider.DeleteFolder(oldMoviePath, true);
|
||||
|
||||
return movieFile;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue