You are here

public function HttpStreamWrapper::url_stat in Remote Stream Wrapper 8

Return value

array

Overrides PhpStreamWrapperInterface::url_stat

File

src/StreamWrapper/HttpStreamWrapper.php, line 272

Class

HttpStreamWrapper
HTTP(s) stream wrapper.

Namespace

Drupal\remote_stream_wrapper\StreamWrapper

Code

public function url_stat($path, $flags) {
  $this
    ->setUri($path);
  if ($flags & STREAM_URL_STAT_QUIET) {
    return @$this
      ->stream_stat();
  }
  else {
    return $this
      ->stream_stat();
  }
}