We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
hbuuutag
5 years agoExplorer | Level 4
How do I iterate through all files and folders and list the metadata?
Trying to make an app that gets and lists all the metadata from Dropbox account.
I am successfully able to get to the parent folder and print that info but cannot figure out how to get the API to g...
- 5 years ago
It looks like you're already on the right track here. If you want to list everything under the root, you start by calling ListFolderAsync with the empty string as the 'path'. If you want to get nested entries too, you should set the 'recursive' parameter to true.
Either way, ListFolderAsync isn't guaranteed to give you everything. You'll need to check the returned ListFolderResult.HasMore and call back to ListFolderContinueAsync if it's true, and so on. Check out the ListFolderAsync documentation for more information on how to process this.
Greg-DB
Dropbox Staff
It looks like you're already on the right track here. If you want to list everything under the root, you start by calling ListFolderAsync with the empty string as the 'path'. If you want to get nested entries too, you should set the 'recursive' parameter to true.
Either way, ListFolderAsync isn't guaranteed to give you everything. You'll need to check the returned ListFolderResult.HasMore and call back to ListFolderContinueAsync if it's true, and so on. Check out the ListFolderAsync documentation for more information on how to process this.
hbuuutag
5 years agoExplorer | Level 4
Solved! Setting the recursive parameter to true was what I was missing ultimately. Thanks for your quick response!
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 7 days agoIf 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 or Facebook.
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!