From fab983b6dcf7b282e8c96e3509209fcc568fb922 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 10 Jun 2013 22:51:23 -0400 Subject: removed some preemptive file filtering --- MediaBrowser.Controller/IO/FileData.cs | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'MediaBrowser.Controller/IO/FileData.cs') diff --git a/MediaBrowser.Controller/IO/FileData.cs b/MediaBrowser.Controller/IO/FileData.cs index 2a62d98d01..6d1e3e05aa 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) { -- cgit v1.2.3