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

YuichiTateno's avatar
YuichiTateno
New member | Level 2
2 years ago

dropbox filesListFolder with limit args do not work well

`dropbox.filesListFolder()` (js) with limit option does not work correctly. I think it was working until last week or so.   The correct behavior is that if you have a folder with dozens of data a...
  • Greg-DB's avatar
    2 years ago

    The 'limit' parameter does not guarantee how many results will be returned per page. It only puts an approximate limit on the maximum number of entries that may be returned. Per the documentation:

    The maximum number of results to return per request. Note: This is an approximate number and there can be slightly more entries returned in some cases.

    You may get less than the 'limit' in any returned page of results.

     

    Due to various factors, the exact number of entries you may get back per filesListFolder/filesListFolderContinue page can vary, and is not guaranteed to be consistent over time, or across accounts or different folders, etc. These methods aren't guaranteed to return all of the results in a single API call response, and there isn't a way to force it to do so, so you need to always check the returned FilesListFolderResult.has_more value. If the returned 'has_more' is true, you need to call back to filesListFolderContinue to get more results.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,883 PostsLatest Activity: 6 hours ago
326 Following

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 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!