Skip to content

Commit

Permalink
Fixes #98: Make AWS S3 listContents prefix aware.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Mar 2, 2014
1 parent 5ff6c3a commit ee607ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Adapter/AwsS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ee607ae

Please sign in to comment.