Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

jwpegram's avatar
jwpegram
Helpful | Level 6
9 years ago
Solved

Problem with files/list_folder/get_lastest_cursor

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
}

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

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 6 hours ago
415 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If 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!