From ee607ae635d762e2e5a89437b2bba019e7e8aebe Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Sun, 2 Mar 2014 12:55:47 +0100 Subject: [PATCH] Fixes #98: Make AWS S3 listContents prefix aware. --- src/Adapter/AwsS3.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Adapter/AwsS3.php b/src/Adapter/AwsS3.php index e1003419c..7b657c413 100644 --- a/src/Adapter/AwsS3.php +++ b/src/Adapter/AwsS3.php @@ -343,6 +343,7 @@ public function listContents($dirname = '', $recursive = false) { $result = $this->client->listObjects(array( 'Bucket' => $this->bucket, + 'Prefix' => $this->prefix($dirname), ))->getAll(array('Contents')); $contents = isset($result['Contents']) ? $result['Contents'] : array();