Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
philip-lf
8 years agoExplorer | Level 4
Dropbox API to download All Content
Hi there, I am trying to fetch all content within a certain directory and display its content. The way it's set up now, it can fetch all files, but not directories within this directory.
dbx
....
- 8 years ago
The only way to download an entire folder at once like that is via filesDownloadZip.
Greg-DB
Dropbox Community Moderator
8 years agoIn this case it sounds like everything is on the first page, but note that that's not guaranteed, so you should keep the filesListFolderContinue implementation based on has_more.
To get actual file data, you should use filesDownload as you had in your original code. That doesn't support folders though. To download folders, either iterate through and download each file underneath using filesDownload, or use filesDownloadZip to download a zip of the folder. You would need to then unzip the download, so it may be simpler to just use filesDownload on each nested file.
To get actual file data, you should use filesDownload as you had in your original code. That doesn't support folders though. To download folders, either iterate through and download each file underneath using filesDownload, or use filesDownloadZip to download a zip of the folder. You would need to then unzip the download, so it may be simpler to just use filesDownload on each nested file.
philip-lf
8 years agoExplorer | Level 4
Is there no way to download the folder with the files in it instead of just the files?
- Greg-DB8 years ago
Dropbox Community Moderator
The only way to download an entire folder at once like that is via filesDownloadZip.
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!