Files
jellyfin-jellyfin-1/MediaBrowser.Controller/Entities/UserRootFolder.cs

23 lines
817 B
C#
Raw Normal View History

2013-02-20 20:33:05 -05:00
using System.Collections.Generic;
using System.Linq;
2014-02-08 17:38:02 -05:00
using MediaBrowser.Controller.Providers;
2013-02-20 20:33:05 -05:00
namespace MediaBrowser.Controller.Entities
{
/// <summary>
/// Special class used for User Roots. Children contain actual ones defined for this user
/// PLUS the virtual folders from the physical root (added by plug-ins).
/// </summary>
public class UserRootFolder : Folder
{
/// <summary>
/// Get the children of this folder from the actual file system
/// </summary>
/// <returns>IEnumerable{BaseItem}.</returns>
2014-02-08 17:38:02 -05:00
protected override IEnumerable<BaseItem> GetNonCachedChildren(DirectoryService directoryService)
2013-02-20 20:33:05 -05:00
{
2014-02-08 17:38:02 -05:00
return base.GetNonCachedChildren(directoryService).Concat(LibraryManager.RootFolder.VirtualChildren);
2013-02-20 20:33:05 -05:00
}
}
}