We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
zanotti
9 years agoExplorer | Level 4
Python, get the latest revision of deleted file to restore them
Hi I have a list of 5400 files that have been deleted, I need that files to be restored.
The file list is in csv format and carries the file path but not the revision to restore them.
I need to get the latest revision of all the 5400 files in order to restore them with another script (which I've written using the dropbox python api).
Anyone is able to share a python snippet showing how to return the latest revision of a deleted file using the file name and path?
Regards
1 Reply
- Greg-DB9 years ago
Dropbox Community Moderator
In the Python SDK, you can use files_list_revisions to get the revisions for the file. There's an example of calling that 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!