You are here

public function S3fsFileService::basename in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 src/S3fsFileService.php \Drupal\s3fs\S3fsFileService::basename()

Gets the filename from a given path.

PHP's basename() does not properly support streams or filenames beginning with a non-US-ASCII character.

Overrides FileSystemInterface::basename

See also

http://bugs.php.net/bug.php?id=37738

basename()

1 call to S3fsFileService::basename()
S3fsFileService::prepareDestination in src/S3fsFileService.php
Prepares the destination for a file copy or move operation.

File

src/S3fsFileService.php, line 158

Class

S3fsFileService
Provides helpers to operate on files and stream wrappers.

Namespace

Drupal\s3fs

Code

public function basename($uri, $suffix = NULL) {
  return $this->decorated
    ->basename($uri, $suffix);
}