/** * {@inheritdoc} */ public function getMetadata($path) { $path = $this->applyPathPrefix($path); /** @var \WindowsAzure\Blob\Models\GetBlobPropertiesResult $result */ $result = $this->client->getBlobProperties($this->container, $path); return $this->normalizeBlobProperties($path, $result->getProperties()); }
/** * {@inheritdoc} */ public function getMetadata($path) { // Prefix the path $path = $this->applyPathPrefix($path); /** @var GetBlobPropertiesResult $result */ $result = $this->client->getBlobProperties($this->container, $path); return $this->normalizeBlobProperties($path, $result->getProperties()); }
/** * {@inheritDoc} */ public function getMetadata($key) { $this->init(); try { $properties = $this->blobProxy->getBlobProperties($this->containerName, $key); return $properties->getMetadata(); } catch (ServiceException $e) { $errorCode = $this->getErrorCodeFromServiceException($e); throw new \RuntimeException(sprintf('Failed to get metadata for blob "%s" in container "%s": %s (%s).', $key, $this->containerName, $e->getErrorText(), $errorCode), $e->getCode()); } }