Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi,
I'm looking to list all the files in folders and sub-folders of one dropbox account with Python v2 API. Is there any equivalent of os.walk() in the API? I can see that we have files_list_folder() but this does not list the files in sub-folders.
Also is there any function in the API which provides the file types, for example, .mp3 or .jpg. If not then I have to do python magic to extract this information.
Thanks
If you need to list all entries, included nested files and folders, you should use files_list_folder and files_list_folder_continue. You can do so by setting recursive=True on the initial call to files_list_folder.
The Dropbox API doesn't offer a way to automatically retrieve the file extension, so you should extract that from the name or path.
If you need to list all entries, included nested files and folders, you should use files_list_folder and files_list_folder_continue. You can do so by setting recursive=True on the initial call to files_list_folder.
The Dropbox API doesn't offer a way to automatically retrieve the file extension, so you should extract that from the name or path.
Links to docs are either broken or were never populated. They lead to:
\ SORRY / \ / \ This page does / ] not exist yet. [ ,'| ] [ / | ]___ ___[ ,' | ] ]\ /[ [ |: | ] ] \ / [ [ |: | ] ] ] [ [ [ |: | ] ] ]__ __[ [ [ |: | ] ] ] ]\ _ /[ [ [ [ |: | ] ] ] ] (#) [ [ [ [ :====' ] ] ]_].nHn.[_[ [ [ ] ] ] HHHHH. [ [ [ ] ] / `HH("N \ [ [ ]__]/ HHH " \[__[ ] NNN [ ] N/" [ ] N H [ / N \ / q, \ / \
@steve-the-bayes Thanks for letting me know! I've fixed the documentation links in my earlier message.
Hi there!
If you need more help you can view your support options (expected response time for a 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!