예제 #1
0
 /**
  * Store a key/value array of metadata at the given path.
  * WARNING: This operation overwrites any metadata that is located at
  * $destinationPath.
  *
  * @param  string $destinationPath
  * @param  array  $metadata        associative array specifying the key/value pairs for the metadata.
  * @param  array  $options
  * @return void
  */
 public function storeMetadata($destinationPath, $metadata, $options = null)
 {
     $this->rackspace->setMetadataObject($this->container, $destinationPath, $metadata);
     if (!$this->rackspace->isSuccessful()) {
         throw new Exception\RuntimeException('Error on store metadata: ' . $this->rackspace->getErrorMsg());
     }
 }