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