You are here

protected function S3fsStreamWrapper::_path_is_dir in S3 File System 7.3

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.

2 calls to S3fsStreamWrapper::_path_is_dir()
S3fsStreamWrapper::dir_opendir in ./S3fsStreamWrapper.inc
Support for opendir().
S3fsStreamWrapper::rmdir in ./S3fsStreamWrapper.inc
Support for rmdir().

File

./S3fsStreamWrapper.inc, line 927
Drupal stream wrapper implementation for S3 File System.

Class

S3fsStreamWrapper
The stream wrapper class.

Code

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