Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::stream_stat()
  2. 9 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 223

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);
}