Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::dir_closedir()
  2. 9 core/lib/Drupal/Core/StreamWrapper/LocalStream.php \Drupal\Core\StreamWrapper\LocalStream::dir_closedir()

Close directory handle.

This method is called in response to closedir(). Any resources which were locked, or allocated, during opening and use of the directory stream should be released.

Return value

bool Returns TRUE on success or FALSE on failure.

Overrides PhpStreamWrapperInterface::dir_closedir

See also

closedir()

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

File

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

Class

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

Namespace

Drupal\Core\StreamWrapper

Code

public function dir_closedir() {
  closedir($this->handle);

  // We do not really have a way to signal a failure as closedir() does not
  // have a return value.
  return TRUE;
}