Don't try to move episode file that does not exist

#ND-144 fixed
This commit is contained in:
Mark McDowall 2013-01-13 15:09:44 -08:00
commit 7a675487fd
2 changed files with 72 additions and 4 deletions

View file

@ -191,6 +191,12 @@ namespace NzbDrone.Core.Providers
return null;
}
if(!_diskProvider.FileExists(episodeFile.Path))
{
Logger.Error("Episode file path does not exist, {0}", episodeFile.Path);
return null;
}
_diskProvider.CreateDirectory(newFile.DirectoryName);
Logger.Debug("Moving [{0}] > [{1}]", episodeFile.Path, newFile.FullName);