Skip to content

Commit ee607ae

Browse files
committed
Fixes #98: Make AWS S3 listContents prefix aware.
1 parent 5ff6c3a commit ee607ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Adapter/AwsS3.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ public function listContents($dirname = '', $recursive = false)
343343
{
344344
$result = $this->client->listObjects(array(
345345
'Bucket' => $this->bucket,
346+
'Prefix' => $this->prefix($dirname),
346347
))->getAll(array('Contents'));
347348

348349
$contents = isset($result['Contents']) ? $result['Contents'] : array();

0 commit comments

Comments
 (0)