From 7f7bbb802337dd88a63a3780339f2209c6dd3cec Mon Sep 17 00:00:00 2001 From: Jonathan Schmid Date: Sun, 19 Jul 2015 23:16:17 +0100 Subject: [PATCH] Added MD5 checksum to meta data --- src/AwsS3Adapter.php | 4 ++++ 1 file changed, 4 insertions(+) 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'], '/');