We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
victorvlad
8 years agoExplorer | Level 3
When listing files in a path using api v2, is there a limit of any kind ?
final DbxClientV2 dbxClient = dropboxService.getDropboxClient(user.getAccessToken());
try {
final ListFolderResult listResult = dbxClient.files()
.listF...
- 8 years ago
I see you're using listFolderBuilder, but aren't calling listFolderContinue. You aren't always guaranteed to get all entries returned by calling just listFolder. You need to check the result, and if ListFolderResult.hasMore is true, call back to listFolderContinue to get more results (and the same for the listFolderContinue result). You can find more information in the listFolder documentation.
Whether or not hasMore actually comes back as true in practice depends on a variety of factors that can change over time, per account, and per path.
Greg-DB
Dropbox Community Moderator
8 years agoThe requirement to use listFolderContinue has always been part of API v2, but the amount of entries you get back per page can vary due to a number of things that can change over time. I can't say exactly what caused the change in this particular case, so just make sure you always have listFolderContinue implemented as documented so you can make sure to get everything.
victorvlad
8 years agoExplorer | Level 3
Ok. Got it. Thanks ! Have a nice day !
-victor
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!