public function rename($sourceKey, $targetKey)
{
$this->init();
try {
$this->blobProxy->copyBlob($this->containerName, $targetKey, $this->containerName, $sourceKey);
$this->blobProxy->deleteBlob($this->containerName, $sourceKey);
return true;
} catch (ServiceException $e) {
$this->failIfContainerNotFound($e, sprintf('rename key "%s"', $sourceKey));
return false;
}
}