$rename = Flysystem::rename('sample.txt', 'renamed.txt');
gaalgergely opened this issue · 1 comments
gaalgergely commented
$rename = Flysystem::rename('sample.txt', 'renamed.txt');
It does not work for me. All the other methods are fine.
Apache log:
AH00592: Destination URI must be an absolute URI.
I use WebDav connection.
UPDATE 1:
I have changed: vendor/league/flysystem-webdav/src/WebDAVAdapter.php
line 178
from 'Destination' => '/'.ltrim($newLocation, '/'),
to 'Destination' => $this->client->getAbsoluteUrl(ltrim($newLocation,'/'))
IT WORKS!
GrahamCampbell commented
Please send a pr to the library in question.