Exemplo n.º 1
0
 /**
  * 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 Zend\Service\Amazon\S3\S3::getObjectsByBucket()
         return $this->_s3->getObjectsByBucket($this->_defaultBucketName);
     } catch (Zend\Service\Amazon\S3\Exception $e) {
         throw new Exception\RuntimeException('Error on list: ' . $e->getMessage(), $e->getCode(), $e);
     }
 }