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

Forum Discussion

landdogger's avatar
landdogger
Helpful | Level 5
3 years ago

get revisions for folder (e.g. detect name change)

It's straightforward to get the revision (i.e. "rev") property from files with FileMetadata objects, but I noticed that there is no revision property for FolderMetadata objects.

 

I was hoping to use the revision property to detect when a folder name has changed, but it seems like this isn't accessible through the API right now. Is this correct?

1 Reply

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

    For both files and folders, you can use the 'id' value from the FileMetadata or FolderMetadata object. That ID does not change when an item is renamed/moved, so you can use it to track items across such changes.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers815 PostsLatest Activity: 2 days ago
277 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!