diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-07-21 15:09:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-21 15:09:00 -0400 |
| commit | f559543bd221751ffba6fa5b17ae753778257988 (patch) | |
| tree | 0db53abfe23c66715ffb2fae4ea3d8ad31183cb2 /MediaBrowser.Controller | |
| parent | b43b52c2377cc92b61167b51670d43e831184273 (diff) | |
| parent | e36aae1d75de1a970509d9c5091e39aa446c74fc (diff) | |
Merge pull request #2764 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Providers/DirectoryService.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs index 3d1af2afa2..6d220f3a36 100644 --- a/MediaBrowser.Controller/Providers/DirectoryService.cs +++ b/MediaBrowser.Controller/Providers/DirectoryService.cs @@ -120,10 +120,14 @@ namespace MediaBrowser.Controller.Providers { file = _fileSystem.GetFileInfo(path); - if (file != null) + if (file != null && file.Exists) { _fileCache.TryAdd(path, file); } + else + { + return null; + } } return file; |
