cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

listFolderBuilder returns hasMore = true, but listFolderContinue returns 0 entries

listFolderBuilder returns hasMore = true, but listFolderContinue returns 0 entries

swong
Explorer | Level 3
Go to solution

Hi all,

See subject. This behaviour appears to be new (started happening in the last 24h) and I believe is different the description in the documentation:

> hasMore - If true, then there are more entries available. Pass the cursor to DbxUserFilesRequests.listFolderContinue(String) to retrieve the rest.

Is this behaviour correct? I am using Java SDK 2.1.1.

Thanks,

Stephen

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

Thanks! This generally shouldn't be very common, but it is possible and expected sometimes. The listFolder[Continue] interface doesn't guarantee a non-zero number of results (due to various aspects of how the backend is implemented), so it is possible to get empty pages like this. You should have your app handle these normally, e.g., looping over the entries to process them, which would just result in 0 iterations in this case. Apologies for the confusion!

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution

Thanks for the report. To clarify, when you call listFolderContinue, does that response also have hasMore = true?

swong
Explorer | Level 3
Go to solution

No, the second request has entries = 0 & hasMore = false.

Greg-DB
Dropbox Staff
Go to solution

Thanks! This generally shouldn't be very common, but it is possible and expected sometimes. The listFolder[Continue] interface doesn't guarantee a non-zero number of results (due to various aspects of how the backend is implemented), so it is possible to get empty pages like this. You should have your app handle these normally, e.g., looping over the entries to process them, which would just result in 0 iterations in this case. Apologies for the confusion!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    swong Explorer | Level 3
What do Dropbox user levels mean?