I'm using the league/flysystem
package with the Flystem driver on laravel.
I'm currently trying to rename a directory. From my understanding, I need to use the move()
method for this. On local filesystem driver, this is working fine. However, when using s3, I'm getting the following error:
"Error executing "GetObjectAcl" on "https://asgard-modules-dev.s3-eu-west-1.amazonaws.com/assets/media/test-s3?acl";
AWS HTTP error: Client error: `GET https://asgard-modules-dev.s3-eu-west-1.amazonaws.com/assets/media/test-s3?acl` resulted in a `404 Not Found` response:↵
<?xml version="1.0" encoding="UTF-8"?>↵
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message> (truncated...)↵
NoSuchKey (client): The specified key does not exist. - <?xml version="1.0" encoding="UTF-8"?>↵
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>assets/media/test-s3</Key><RequestId>B50AF4134D66FA68</RequestId><HostId>yliO7CUIt5PBsix/C339BrdFzrMTsKsommGc0fVOculaITBfC9CDPg2X43oXnW9RjnvRynmi39k=</HostId></Error>"
When I dump my from
and to
paths, I have the correct path names:
"/assets/media/test-s3" (from)
"/assets/media/test-s3333" (to)
The from path does exist at that location.
Am I missing something?
Thanks!