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
rrpai
7 years agoHelpful | Level 5
Clarification about API - DbxUserFilesRequests.listFolderContinue
Clarification about this API - DbxUserFilesRequests.listFolderContinue
DbxUserFilesRequests.listFolderContinue(String cursor)
https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-
- Say i call listFolder() and i got back 50 results [1 .. 50] , and a "cursor"
- After say 1 minute i call listFolderContinue(cursor)
- Assume we are only looking for folder's immediate content and 'not recursive'
- Assume the folder contents have not changed.
Assumption
This API will return results from '51 th' file and *will not include any repeat results* from [1 .. 50]
1. Is this assumption correct ?
2. Is there any 'timeout' for this 'cursor' (assume folder contents have not changed)
Thanks in advance
1. That's correct, if nothing has changed, you should not get any repeated results across pages.
For reference, make sure you're always processing the returned results exactly as documented for listFolder.
2. These cursors don't have any specific timeout, but they can become invalid in certain scenarios.
You'll get a ListFolderContinueError.RESET if the cursor is no longer valid.
(By the way, you seem to be on the older v2.x docs. The above links are also to the v2.x docs for consistency, but the latest version can be found here.)
- Greg-DBDropbox Staff
1. That's correct, if nothing has changed, you should not get any repeated results across pages.
For reference, make sure you're always processing the returned results exactly as documented for listFolder.
2. These cursors don't have any specific timeout, but they can become invalid in certain scenarios.
You'll get a ListFolderContinueError.RESET if the cursor is no longer valid.
(By the way, you seem to be on the older v2.x docs. The above links are also to the v2.x docs for consistency, but the latest version can be found here.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 4 days 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!