public function S3fsFileService::dirname in S3 File System 8.3
Same name and namespace in other branches
- 4.0.x src/S3fsFileService.php \Drupal\s3fs\S3fsFileService::dirname()
Gets the name of the directory from a given path.
PHP's dirname() does not properly pass streams, so this function fills that gap. It is backwards compatible with normal paths and will use PHP's dirname() as a fallback.
Compatibility: normal paths and stream wrappers.
Parameters
string $uri: A URI or path.
Return value
string A string containing the directory name.
Overrides FileSystemInterface::dirname
See also
dirname()
https://www.drupal.org/node/515192
1 call to S3fsFileService::dirname()
- S3fsFileService::prepareDestination in src/
S3fsFileService.php - Prepares the destination for a file copy or move operation.
File
- src/
S3fsFileService.php, line 151
Class
- S3fsFileService
- Provides helpers to operate on files and stream wrappers.
Namespace
Drupal\s3fsCode
public function dirname($uri) {
return $this->decorated
->dirname($uri);
}