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: 

Clarification about API - DbxUserFilesRequests.listFolderContinue

Clarification about API - DbxUserFilesRequests.listFolderContinue

rrpai
Helpful | Level 5
Go to solution

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/DbxUserFilesReq...

- 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 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.)

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

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.)

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?