Exemplo n.º 1
0
 public async Task <List <DriveEntityInfo> > GetCatalogContent(string pathToCatalog)
 {
     if (pathToCatalog == "/")
     {
         pathToCatalog = "";
     }
     return(CatalogContentsMapper.MapDropboxCatalogContent(
                (await diskApi.Files.ListFolderAsync(pathToCatalog)).Entries, this));
 }
Exemplo n.º 2
0
 public async Task <List <DriveEntityInfo> > GetCatalogContent(string pathToCatalog)
 {
     return(CatalogContentsMapper.MapYandexCatalogContent(
                (await diskApi.MetaInfo.GetInfoAsync(
                     new ResourceRequest {
         Path = pathToCatalog, Limit = 2147483647
     },
                     CancellationToken.None)).Embedded.Items, this));
 }
Exemplo n.º 3
0
 private async Task <List <DriveEntityInfo> > GetFlatList(string directory)
 => CatalogContentsMapper.MapDropboxCatalogContent(
     (await diskApi.Files.ListFolderAsync(directory, true)).Entries, this);