You are here

public function S3fsStreamWrapper::url_stat in S3 File System 7

Same name and namespace in other branches
  1. 7.3 S3fsStreamWrapper.inc \S3fsStreamWrapper::url_stat()
  2. 7.2 S3fsStreamWrapper.inc \S3fsStreamWrapper::url_stat()

Support for stat().

Parameters

string $uri: A string containing 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 - see fstat() for a description of this array.

Overrides StreamWrapperInterface::url_stat

See also

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

File

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

Class

S3fsStreamWrapper
The stream wrapper class.

Code

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