From 342afe7b22b429f8db99a8dcac43420fa9a29b35 Mon Sep 17 00:00:00 2001 From: Jonathan Schmid Date: Mon, 13 Jul 2015 22:19:04 +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 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'], '/');