diff --git a/src/AwsS3Adapter.php b/src/AwsS3Adapter.php index 4f48f06..0b8a9b6 100644 --- a/src/AwsS3Adapter.php +++ b/src/AwsS3Adapter.php @@ -429,6 +429,10 @@ protected function normalizeResponse(array $object, $path = null) $result['timestamp'] = strtotime($object['LastModified']); } + if (isset($object['ETag'])) { + $result['md5'] = substr($object['ETag'], 1, -1); + } + if (substr($result['path'], -1) === '/') { $result['type'] = 'dir'; $result['path'] = rtrim($result['path'], '/');