cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

List ALL folders and files on my dropbox account

List ALL folders and files on my dropbox account

prueba p.1
New member | Level 1

Hi, i'm working on c# and i can just show the files on the root directory , i want to show all the folders and files inside this folders on the root directory, didn't see anything on the forum, any idea?

 

Thx

10 Replies 10

Greg-DB
Dropbox Staff

@abelmor Exactly how you use the API will on exactly what you're looking to do, so please refer to the information earlier in this thread to see how to configure these calls.

 

For example, here's a very basic sample of how you can call these methods to print out the entries for everything directly in the root folder for the call:

void HandleEntries(IList<Dropbox.Api.Files.Metadata> entries)
{
    foreach (var entry in entries)
    {
        Console.WriteLine(entry);
    }
}

var result = await client.Files.ListFolderAsync(path:string.Empty);
HandleEntries(result.Entries);
while (result.HasMore) {
    result = await client.Files.ListFolderContinueAsync(result.Cursor);
    HandleEntries(result.Entries);
}
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    abelmor Explorer | Level 4
  • User avatar
    ahmedcoo New member | Level 2
  • User avatar
    Sajidbalti New member | Level 2
What do Dropbox user levels mean?