You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
hbuuutag
6 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...
- 6 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
6 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
797 PostsLatest Activity: 2 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!