diff --git a/src/AwsS3Adapter.php b/src/AwsS3Adapter.php index 0ced4a4..a8dd24b 100644 --- a/src/AwsS3Adapter.php +++ b/src/AwsS3Adapter.php @@ -679,6 +679,10 @@ protected function normalizeResponse(array $response, $path = null) $result['timestamp'] = strtotime($response['LastModified']); } + if (isset($response['@metadata'])) { + $result['uri'] = $response['@metadata']['effectiveUri']; + } + if ($this->isOnlyDir($result['path'])) { $result['type'] = 'dir'; $result['path'] = rtrim($result['path'], '/');