protected function S3fsStream::isDir in S3 File System 8.3
Same name and namespace in other branches
- 4.0.x src/StreamWrapper/S3fsStream.php \Drupal\s3fs\StreamWrapper\S3fsStream::isDir()
Determine whether the $uri is a directory.
Parameters
string $uri: The path of the resource to check.
Return value
bool TRUE if the resource is a directory.
3 calls to S3fsStream::isDir()
- S3fsStream::dir_opendir in src/
StreamWrapper/ S3fsStream.php - S3fsStream::rename in src/
StreamWrapper/ S3fsStream.php - Support for rename().
- S3fsStream::rmdir in src/
StreamWrapper/ S3fsStream.php - Support for rmdir().
File
- src/
StreamWrapper/ S3fsStream.php, line 1246
Class
- S3fsStream
- Defines a Drupal s3 (s3://) stream wrapper class.
Namespace
Drupal\s3fs\StreamWrapperCode
protected function isDir($uri) {
$metadata = $this
->getS3fsObject($uri);
return $metadata ? $metadata['dir'] : FALSE;
}