We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Joel T.9
10 years agoNew member | Level 2
V1 getDelta() vs. V2 listFolder()
The old getDelta() returns everything for an "App Folder", meaning the app folder and all its subfolders.
It appears that the new listFolder/Continue() isn't really equivalent in that way. It seems...
Greg-DB
Dropbox Community Moderator
10 years agoThe equivalent of v1's getDelta on v2 is listFolder with recursive=true and listFolderContinue.
Note that both getDelta and listFolder/Continue are paginated, so for both it's possible that the initial call won't contain all of the results. In either case, for a correct implementation you need to save the cursor from the last call and keep calling back (i.e., to getDelta or listFolderContinue) if the previous reply included hasMore=true. You don't need to keep track of multiple cursors. As long as you originally set recursive=true you'll get all entries back.
The documentation for /1/delta and /2/files/list_folder and/2/files/list_folder/continue have more information:
https://www.dropbox.com/developers-v1/core/docs#delta
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
It sounds like you may be using the Java SDK. The Java SDK documentation for listFolder can be found here:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!