diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-26 21:43:18 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-26 21:43:18 -0400 |
| commit | 16e9a7e42fa4be2d82d059a898a1b8a753b8b1ea (patch) | |
| tree | defcb10ba91c292b036389228c8468af023bd6ae /MediaBrowser.Controller/IO/FileData.cs | |
| parent | 911a60971f6accb94351ccc581e8f1d86d59c1b5 (diff) | |
fixed user collections not getting populated
Diffstat (limited to 'MediaBrowser.Controller/IO/FileData.cs')
| -rw-r--r-- | MediaBrowser.Controller/IO/FileData.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/IO/FileData.cs b/MediaBrowser.Controller/IO/FileData.cs index 79ba0a64f..6d18070ad 100644 --- a/MediaBrowser.Controller/IO/FileData.cs +++ b/MediaBrowser.Controller/IO/FileData.cs @@ -50,7 +50,20 @@ namespace MediaBrowser.Controller.IO var data = FileSystem.GetFileSystemInfo(newPath); - dict[data.FullName] = data; + if (data.Exists) + { + // Find out if the shortcut is pointing to a directory or file + if (data.Attributes.HasFlag(FileAttributes.Directory)) + { + // add to our physical locations + if (args != null) + { + args.AddAdditionalLocation(newPath); + } + } + + dict[data.FullName] = data; + } } else if (flattenFolderDepth > 0 && isDirectory) { |
