/** * Get a key/value array of metadata for the given path. * * @param string $path * @param array $options * @return array */ public function fetchMetadata($path, $options = array()) { try { return $this->_s3->getInfo($this->_getFullPath($path, $options)); } catch (Zend\Service\Amazon\S3\Exception $e) { throw new Exception\RuntimeException('Error on fetch: ' . $e->getMessage(), $e->getCode(), $e); } }