Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

[Memo] There is no API to undelete a file. #150

Open
probablycorey opened this issue Oct 15, 2018 · 3 comments
Open

[Memo] There is no API to undelete a file. #150

probablycorey opened this issue Oct 15, 2018 · 3 comments

Comments

@probablycorey
Copy link
Contributor

I don’t think it’s possible to undo a file deletion. Would it be possible to let users do something like that?

@as-cii
Copy link
Contributor

as-cii commented Oct 15, 2018

We think this should already be possible by calling rename and specifying the old parent id and name. You could try that in the short term, but it might be more convenient and discoverable for us to add a method that offers this under a name like undelete.

@probablycorey
Copy link
Contributor Author

I got it working with the rename strategy. It is a little weird and I think an undelete method would make the code clearer, but it all works for now!

@probablycorey
Copy link
Contributor Author

@as-cii In v0.5.0 the renaming strategy doesn't work anymore. Looks like it might be time for an an API call!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants