Example #1
0
        public async Task <FolderItem> GetTreeAsync(CancellationToken cancellationToken)
        {
            IEnumerable <string> all = await _mediaStore.GetAllFoldersAsync(cancellationToken);

            List <FolderItem> flat = GetFlatList(all);
            FolderItem        root = BuildStructure(flat);

            return(root);
        }