aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-19 14:03:21 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-19 14:03:21 -0400
commit6c1bfe661bf2d0c2e988793bd760148d57014bb4 (patch)
tree613f74f31faa75a94fc75a9dfa4364150f48956b /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parent5bcb7fe67fee478abacd795071959224931dcdbd (diff)
tighter control of shortcuts
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 46e8b261f..e1d2e42b5 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -413,10 +413,12 @@ namespace MediaBrowser.Server.Implementations.Library
// Gather child folder and files
if (args.IsDirectory)
{
+ var isPhysicalRoot = args.IsPhysicalRoot;
+
// When resolving the root, we need it's grandchildren (children of user views)
- var flattenFolderDepth = args.IsPhysicalRoot ? 2 : 0;
+ var flattenFolderDepth = isPhysicalRoot ? 2 : 0;
- args.FileSystemDictionary = FileData.GetFilteredFileSystemEntries(args.Path, _logger, flattenFolderDepth: flattenFolderDepth, args: args);
+ args.FileSystemDictionary = FileData.GetFilteredFileSystemEntries(args.Path, _logger, flattenFolderDepth: flattenFolderDepth, args: args, resolveShortcuts: isPhysicalRoot || args.IsVf);
}
// Check to see if we should resolve based on our contents