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
ipico
5 years agoExplorer | Level 3
Re: Retrieve with a File limit and File count
I'm looking for a way to get the count of entries from this python api call:
e=dbx.files_list_folder('/myfolder').entries
None of the following work:
>>> print(e.count)
<built-in method count o...
- 5 years ago
The ListFolderResult.entries returned by files_list_folder is a 'list' so you can use Python's 'len' function to get its length, like this:
print(len(dbx.files_list_folder('/myfolder').entries))
Please note though that you're not guaranteed to get all of the files/folders in a particular folder back in a single call to files_list_folder. If ListFolderResult.has_more is 'true' you need to call back to files_list_folder_continue for more entries. Check out the files_list_folder documentation for more information.
Greg-DB
5 years agoDropbox Staff
The ListFolderResult.entries returned by files_list_folder is a 'list' so you can use Python's 'len' function to get its length, like this:
print(len(dbx.files_list_folder('/myfolder').entries))
Please note though that you're not guaranteed to get all of the files/folders in a particular folder back in a single call to files_list_folder. If ListFolderResult.has_more is 'true' you need to call back to files_list_folder_continue for more entries. Check out the files_list_folder documentation for more information.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 5 hours 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!