You are here

protected function S3fsStreamWrapper::getCommandParams in S3 File System 7.3

Return bucket and key for a command array.

Parameters

string $uri: Uri to the required object.

Return value

array A modified path to the key in S3.

2 calls to S3fsStreamWrapper::getCommandParams()
S3fsStreamWrapper::waitUntilFileExists in ./S3fsStreamWrapper.inc
Wait for the specified file to exist in the bucket.
S3fsStreamWrapper::_get_metadata_from_s3 in ./S3fsStreamWrapper.inc
Returns the converted metadata for an object in S3.

File

./S3fsStreamWrapper.inc, line 1180
Drupal stream wrapper implementation for S3 File System.

Class

S3fsStreamWrapper
The stream wrapper class.

Code

protected function getCommandParams($uri) {
  $convertedPath = $this
    ->convertUriToKeyedPath($uri, FALSE);
  $params = $this
    ->getOptions(true);
  $params['Bucket'] = $this->config['bucket'];
  $params['Key'] = file_uri_target($convertedPath);
  return $params;
}