You are here

public function S3fsStream::url_stat in S3 File System 8.2

Same name and namespace in other branches
  1. 8.3 src/StreamWrapper/S3fsStream.php \Drupal\s3fs\StreamWrapper\S3fsStream::url_stat()
  2. 4.0.x src/StreamWrapper/S3fsStream.php \Drupal\s3fs\StreamWrapper\S3fsStream::url_stat()

Support for stat().

Parameters

string $uri: The URI to get information about.

int $flags: A bit mask of STREAM_URL_STAT_LINK and STREAM_URL_STAT_QUIET. S3fsStreamWrapper ignores this value.

Return value

array An array with file status, or FALSE in case of an error.

Overrides PhpStreamWrapperInterface::url_stat

See also

http://php.net/manual/en/streamwrapper.url-stat.php

File

src/StreamWrapper/S3fsStream.php, line 1002

Class

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

Namespace

Drupal\s3fs\StreamWrapper

Code

public function url_stat($uri, $flags) {
  $this
    ->_assert_constructor_called();
  $this
    ->_debug("url_stat({$uri}, {$flags}) called.");
  return $this
    ->_stat($uri);
}