cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Known issues updated. Learn more
Highlighted

Clarification about API - DbxUserFilesRequests.listFolderContinue

Level 5

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

Re: Clarification about API - DbxUserFilesRequests.listFolderContinue

Dropboxer

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

Re: Clarification about API - DbxUserFilesRequests.listFolderContinue

Dropboxer

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...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post