Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

sergey-sm's avatar
sergey-sm
New member | Level 2
4 years ago
Solved

Dropbox Java SDK - does "listRevisions(String path)" return ordered list of revisions?

Hi, I need to know if the order of returned file versions is guaranteed for this method https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.2.0/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listRevisions(java.lang.String) ? I need to restore the latest previous version of a file if a version id is not provided for our API.

  • The documentation doesn't indicate a specific sort order, so I can't guarantee if/how it will be sorted. I'll ask the team to document/guarantee a particular order, but I can't promise if/when that would be done. That being the case, I recommend applying whatever sorting you need client-side to be sure.

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    The documentation doesn't indicate a specific sort order, so I can't guarantee if/how it will be sorted. I'll ask the team to document/guarantee a particular order, but I can't promise if/when that would be done. That being the case, I recommend applying whatever sorting you need client-side to be sure.

About Dropbox API Support & Feedback

Node avatar for 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!