/** * List items in the given directory in the storage service * * The $path must be a directory * * * @param string $path Must be a directory * @param array $options * @return array A list of item names */ public function listItems($path, $options = null) { try { // TODO Support 'prefix' parameter for \ZendService\Amazon\S3\S3::getObjectsByBucket() return $this->_s3->getObjectsByBucket($this->_defaultBucketName); } catch (\ZendService\Amazon\S3\Exception $e) { throw new Exception\RuntimeException('Error on list: ' . $e->getMessage(), $e->getCode(), $e); } }