cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

Problem with files/list_folder/get_lastest_cursor

Problem with files/list_folder/get_lastest_cursor

jwpegram
Helpful | Level 6

I may be doing this incorrectly, but here goes.

 

First, I uploaded and/or deleted something from the dropbox account (waited a few minutes).

Then I ran https://api.dropboxapi.com/2/files/list_folder/get_latest_cursor passing the all the correct values.

get_latest_cursor returned a cursor value (so far so good).

Next I called https://api.dropboxapi.com/2/files/list_folder/continue  and passed it the cursor returned from the get_latest_cursor call.

 

Expectation:  I expected to see a list of the two changes I had made to the account. (1 file added, 1 file deleted).

 

Actual:

{
    "entries": [],
    "cursor": "AAF1LwpAGlqDHXIOc2QYsiF5HF4FlfDx-Pq-zv4eDRF9kak1OFvtAjkW_F5UwmiUJ4AYJ_b91Eu9j-fi17d5Xw4l43AWjmzB0HEzL4w22zifpDxHHC2gVFRraLo0o2pCXKcFTMI-p72l4RSekoaTiKqgxSYlxeVcgD7Vsnaf5OHV0PKAJOuorFpnbQx5bbBix7Y",
    "has_more": false
}

 

Any thoughts?  I also checked this cursor and just got the same result with a new cursor value.

 

These are the settings sent to get_latest_cursor:

{
  "include_deleted": true,
  "include_has_explicit_shared_members": false,
  "include_media_info": false,
  "path": "",
  "recursive": true
}

1 Accepted Solution

Accepted Solutions

Re: Problem with files/list_folder/get_lastest_cursor

Greg-DB
Dropboxer
If I understand your scenario correctly, the actual behavior here is correct and expected. You retrieved the cursor after those changes were made, so /2/files/list_folder/continue won't/shouldn't tell you about them when you call with that cursor. (It would tell you about changes that occurred after you retrieved that latest cursor.)

If you want to know about those earlier changes though, you should get the latest cursor before making the changes.

View solution in original post

1 Reply 1

Re: Problem with files/list_folder/get_lastest_cursor

Greg-DB
Dropboxer
If I understand your scenario correctly, the actual behavior here is correct and expected. You retrieved the cursor after those changes were made, so /2/files/list_folder/continue won't/shouldn't tell you about them when you call with that cursor. (It would tell you about changes that occurred after you retrieved that latest cursor.)

If you want to know about those earlier changes though, you should get the latest cursor before making the changes.

View solution in original post

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?