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

Could implement the rename function #25

Open
mlambley opened this issue Jan 29, 2021 · 1 comment
Open

Could implement the rename function #25

mlambley opened this issue Jan 29, 2021 · 1 comment

Comments

@mlambley
Copy link
Member

public function rename($path, $newpath)
{
return false;
}

This could be implemented using copyFile (see gliterd/backblaze-b2#57) and then delete the original file.

@remmelt
Copy link

remmelt commented Feb 2, 2021

Yes, a decision needs to be made what to do when the copy command succeeds, but the delete fails. There are no transactions ;-)

Perhaps throwing an exception is good enough.

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