You are here

public function LocalStream::dir_readdir in Drupal 9

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

Read entry from directory handle.

This method is called in response to readdir().

Return value

string|false Should return string representing the next filename, or FALSE if there is no next file. Note, the return value will be casted to string.

Overrides PhpStreamWrapperInterface::dir_readdir

See also

readdir()

http://php.net/manual/en/streamwrapper.dir-readdir.php

File

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

Class

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

Namespace

Drupal\Core\StreamWrapper

Code

public function dir_readdir() {
  return readdir($this->handle);
}