gliterd / flysystem-backblaze

:cd: A backblaze adapter which can be used with flysystem(http://flysystem.thephpleague.com/)

Home Page:http://flysystem.thephpleague.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could implement the rename function

mlambley opened this issue · comments

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

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

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.