Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PATCH to rename files/folders #87

Open
josephmturner opened this issue Aug 10, 2023 · 2 comments
Open

Use PATCH to rename files/folders #87

josephmturner opened this issue Aug 10, 2023 · 2 comments

Comments

@josephmturner
Copy link
Contributor

josephmturner commented Aug 10, 2023

The Github API uses PATCH requests for renaming repositories (SO post here.

WDYT about an API for to rename /foo to /bar like this:

PATCH hyper://PUBLIC-KEY/foo
Content-Type: application/json

{ "name": "/bar" }

This feature would make atomic renaming possible by using drive.batch() under the hood.

@josephmturner
Copy link
Contributor Author

@alphapapa do you have any thoughts on this API?

@alphapapa
Copy link

I like it!

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

No branches or pull requests

2 participants