You are here

protected function S3fsStream::getTarget in S3 File System 8.2

File

src/StreamWrapper/S3fsStream.php, line 1598

Class

S3fsStream
Defines a Drupal s3fs (s3fs://) stream wrapper class.

Namespace

Drupal\s3fs\StreamWrapper

Code

protected function getTarget($uri = NULL) {
  if (!isset($uri)) {
    $uri = $this->uri;
  }
  list(, $target) = explode('://', $uri, 2);

  // Remove erroneous leading or trailing, forward-slashes and backslashes.
  return trim($target, '\\/');
}