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
samanderson
8 months agoExplorer | Level 3
Export Folders & Filename List
Hey there! I'm looking for a method to generate a TXT file containing the contents of a publicly shared folder, including both files and subfolders, along with their respective filenames and modification dates. I first attempted to create a script with ChatGPT's help, but couldn't get it to work. Then, I tried using the andreafabrizi/Dropbox-Uploader BASH script, but encountered various issues when trying to run it.
Hi samanderson,
Following your desire, you can do it in 2 nested steps. First you need to enlist all shared links using /2/sharing/list_shared_links and next in recursive way list all nested folders to for all links to shared folders using /2/files/list_folder/continue while keep in mind that the recursion must be organized by you - embedded recursion for links is not supported. Now, you should have links for all files that have (directly or indirectly) pointing shared links and their names as well. For further metadata (modification time and so on) you may call /2/sharing/get_shared_link_metadata for every file link got from the first step. Be aware of different modification dates - client side and server side - you likely need client side.
The above endpoints can be accessed using any network tool (like curl, for instance) or programing language (either supported by Dropbox or not) able to perform HTTP request (i.e. all in fact). The choice is yours, but I would suggest using Python with the Dropbox Python SDK. 😉
One more suggestion (or maybe joke): don't rely on AI (they are no so intelligent yet), but rather on your own intelligence! 😀
Hope this gives direction.
- ЗдравкоLegendary | Level 20
Hi samanderson,
Following your desire, you can do it in 2 nested steps. First you need to enlist all shared links using /2/sharing/list_shared_links and next in recursive way list all nested folders to for all links to shared folders using /2/files/list_folder/continue while keep in mind that the recursion must be organized by you - embedded recursion for links is not supported. Now, you should have links for all files that have (directly or indirectly) pointing shared links and their names as well. For further metadata (modification time and so on) you may call /2/sharing/get_shared_link_metadata for every file link got from the first step. Be aware of different modification dates - client side and server side - you likely need client side.
The above endpoints can be accessed using any network tool (like curl, for instance) or programing language (either supported by Dropbox or not) able to perform HTTP request (i.e. all in fact). The choice is yours, but I would suggest using Python with the Dropbox Python SDK. 😉
One more suggestion (or maybe joke): don't rely on AI (they are no so intelligent yet), but rather on your own intelligence! 😀
Hope this gives direction.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years 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!