You are here

public function LocalStream::stream_stat in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_stat()

Retrieve information about a file resource.

This method is called in response to fstat().

Return value

array|false See stat().

Overrides PhpStreamWrapperInterface::stream_stat

See also

stat()

PhpStreamWrapperInterface::url_stat()

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

File

core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 225

Class

LocalStream
Defines a Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

public function stream_stat() {
  return fstat($this->handle);
}