From e54a96e8c64fa3554b142c753e6771d99db55d26 Mon Sep 17 00:00:00 2001 From: Newerton Date: Wed, 14 Oct 2020 13:40:11 -0300 Subject: [PATCH] Return file URI --- src/AwsS3Adapter.php | 4 ++++ 1 file changed, 4 insertions(+) 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'], '/');