You are here

protected function S3fsStream::_uri_is_dir in S3 File System 8.2

Determine whether the $uri is a directory.

Parameters

string $uri: The uri of the resource to check.

Return value

bool TRUE if the resource is a directory.

2 calls to S3fsStream::_uri_is_dir()
S3fsStream::dir_opendir in src/StreamWrapper/S3fsStream.php
Support for opendir().
S3fsStream::rmdir in src/StreamWrapper/S3fsStream.php
Support for rmdir().

File

src/StreamWrapper/S3fsStream.php, line 1196

Class

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

Namespace

Drupal\s3fs\StreamWrapper

Code

protected function _uri_is_dir($uri) {
  $metadata = $this
    ->_s3fs_get_object($uri);
  return $metadata ? $metadata['dir'] : FALSE;
}