cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python, get the latest revision of deleted file to restore them

Python, get the latest revision of deleted file to restore them

zanotti
Explorer | Level 4

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 1

Greg-DB
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?