diff --git a/src/Dmyers/Storage/Adapter/AmazonS3.php b/src/Dmyers/Storage/Adapter/AmazonS3.php index f4e6bc7..fa037c1 100644 --- a/src/Dmyers/Storage/Adapter/AmazonS3.php +++ b/src/Dmyers/Storage/Adapter/AmazonS3.php @@ -216,10 +216,18 @@ public function isDirectory($path) */ public function files($path) { - return $this->client->listKeys(array( + $files = array(); + + $iterator = $this->client->getIterator('ListObjects', array( 'Bucket' => $this->bucket, 'Prefix' => $this->computePath($path), )); + + foreach ($iterator as $object) { + $files[] = $object['Key']; + } + + return $files; } /**