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
toki4004
2 years agoHelpful | Level 5
Download ANY file in folder
To download a file I need a full path. What if I don't know the name of the file? How would I list that path then to grab any txt file?
"path": "/Homework/math/Prime_Numbers.txt"
- 2 years ago
toki4004, You can search for such files using /2/files/search_v2/continue_v2. Just restrict the search to particular extension and look in filename only with the same string as the extension. In the resulting list you will see all such files with their paths, ids, and revisions (you can use anything of them to download particular file or set of files).
Hope this helps.
toki4004
Helpful | Level 5
I can list contents of a folder with an open path but I can't download a file with just the folder name in the path, correct? If I try that, I get errors...
I am trying to stay away form list -> then download, because I'd have to make 2 trips to DB - performance-wise that would not be ideal.
Здравко
2 years agoLegendary | Level 20
toki4004, The access point /2/files/download can download file only. If you want to download a folder together with entire content, there is another access point /2/files/download_zip that downloads pointed folder in zipped form. 😉
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 27 minutes 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!