jellyfin/MediaBrowser.Controller/Entities/UserRootFolder.cs

22 lines
727 B
C#
Raw Normal View History

2013-02-20 18:33:05 -07:00
using System.Collections.Generic;
using System.Linq;
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>
protected override IEnumerable<BaseItem> GetNonCachedChildren()
{
return base.GetNonCachedChildren().Concat(LibraryManager.RootFolder.VirtualChildren);
2013-02-20 18:33:05 -07:00
}
}
}