We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
prueba p.1
10 years agoNew member | Level 1
List ALL folders and files on my dropbox account
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 i...
abelmor
3 years agoExplorer | Level 4
Send me the code for listing files and folders in Dropbox. Louise
Greg-DB
Dropbox Community Moderator
3 years agoabelmor 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);
}About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!