Пример #1
0
 /**
  * Move an item in the storage service to a given path.
  *
  * @param  string $sourcePath
  * @param  string $destinationPath
  * @param  array  $options
  * @return void
  */
 public function moveItem($sourcePath, $destinationPath, $options = null)
 {
     try {
         $this->_storageClient->copyBlob($this->_container, $sourcePath, $this->_container, $destinationPath);
         $this->_storageClient->deleteBlob($this->_container, $sourcePath);
     } catch (WindowsAzureException\ExceptionInterface $e) {
         throw new Exception\RunTimeException('Error on move: ' . $e->getMessage(), $e->getCode(), $e);
     }
 }