mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: Error when importing files and old folder doesn’t exist.
Fixes #2485
This commit is contained in:
parent
e71e518d30
commit
11211dc2ed
@ -141,7 +141,7 @@ private MovieFile TransferFile(MovieFile movieFile, Movie movie, string destinat
|
||||
|
||||
_mediaFileAttributeService.SetFilePermissions(destinationFilePath);
|
||||
|
||||
if(oldMoviePath != newMoviePath)
|
||||
if(oldMoviePath != newMoviePath && _diskProvider.FolderExists(oldMoviePath))
|
||||
{
|
||||
//Let's move the old files before deleting the old folder. We could just do move folder, but the main file (movie file) is already moved, so eh.
|
||||
var files = _diskProvider.GetFiles(oldMoviePath, SearchOption.AllDirectories);
|
||||
|
Loading…
Reference in New Issue
Block a user