diff options
Diffstat (limited to 'MediaBrowser.Controller/IO/FileData.cs')
| -rw-r--r-- | MediaBrowser.Controller/IO/FileData.cs | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/MediaBrowser.Controller/IO/FileData.cs b/MediaBrowser.Controller/IO/FileData.cs index 2a62d98d0..6d1e3e05a 100644 --- a/MediaBrowser.Controller/IO/FileData.cs +++ b/MediaBrowser.Controller/IO/FileData.cs @@ -48,22 +48,16 @@ namespace MediaBrowser.Controller.IO continue; } - var data = FileSystem.GetFileSystemInfo(newPath); + // Don't check if it exists here because that could return false for network shares. + var data = new DirectoryInfo(newPath); - if (data.Exists) + // add to our physical locations + if (args != null) { - // add to our physical locations - if (args != null) - { - args.AddAdditionalLocation(newPath); - } - - dict[data.FullName] = data; - } - else - { - logger.Warn("Cannot add unavailble/non-existent location {0}", data.FullName); + args.AddAdditionalLocation(newPath); } + + dict[data.FullName] = data; } else if (flattenFolderDepth > 0 && isDirectory) { |
