How can we restore a dropbox folder using java api?
The API currently only offers the ability to restore specific files, and not entire folders, but I'll be sure to pass this along as a feature request.
Hi Greg
Is this still the case? Is there no api for restoring a folder that has been deleted?
@patrikc This is still the case. The Dropbox API still doesn't offer functionality for restoring entire folders.
Ok! Thanks anyway.
Is there any update on this? Is it possible to restore folders using the dropbox api? Thanks.
@Hchauhan No, unfortunately there isn't an update on this.
Thanks, Greg. Is there any workaround using api?
@Hchauhan You'd need to use the /2/files/restore endpoint (or corresponding method in an SDK) to restore each file as needed.
Thanks. I understand. Calling ListFolderAsync on a deleted folder returns path not found error. How do I get the names\ids of the files which are in the deleted folder so I can restore them?
@Hchauhan The Dropbox API does not currently support directly listing the contents of a deleted folder, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. To work around that, you would need to either use the metadata you had previously retrieved from the API before the deletion, or list the items using a non-deleted parent folder, or recreate the deleted folder and then list the deleted contents.