cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Known issues updated. Learn more
Highlighted
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/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 best answer

Accepted Solutions
Dropboxer

Re: Clarification about API - DbxUserFilesRequests.listFolderContinue

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

Reply
Loading...
1 Reply
Dropboxer

Re: Clarification about API - DbxUserFilesRequests.listFolderContinue

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

Reply
Loading...