We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Lechucico
9 years agoHelpful | Level 6
Metadata instanceof DeletedMetadata and FileMetadata
Hello,
I would like to know if there's any way of check if the Metadata of a certain entry is of type DeletedMetadata and FileMetada but not FolderMetadata.
Like the following:
...
Lechucico
9 years agoHelpful | Level 6
I've found a problem. By default, folders doesn't seem to have revision, since if I try to list revisions for a folder an exception raises.
But there's a problem:
When I receive a webhook with a DeleteMetadata I check the list revision of that path for see what was there before, and there's a problem:
- I create a file 'hello' without extension.
- I Remove it.
- I create a folder 'hello'
- Now if I remove the folder, the revisions of the old file appears.
When are removed the revisions?
I've cleaned the bin and revisions still appears from that file.
Greg-DB
Dropbox Community Moderator
9 years agoThat's correct, folders are not considered to have revisions.
File revisions are stored for 30 days by default, or longer depending on the account type/features: https://www.dropbox.com/help/space/older-versions
File revisions are stored for 30 days by default, or longer depending on the account type/features: https://www.dropbox.com/help/space/older-versions
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!