You are here

function StreamWrapper::dir_opendir in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 tests/lib/Filesystem/StreamWrapper.php \Drupal\xautoload\Tests\Filesystem\StreamWrapper::dir_opendir()

Parameters

string $path:

int $options:

Return value

bool

File

tests/src/Filesystem/StreamWrapper.php, line 141

Class

StreamWrapper
Intercept calls to the filesystem, so we don't have to create fixture files.

Namespace

Drupal\xautoload\Tests\Filesystem

Code

function dir_opendir($path, $options) {
  $contents = self::$filesystem
    ->getDirContents($path);
  if (FALSE === $contents) {
    return FALSE;
  }
  $this->path = $path;
  $this->dirContents = $contents;
  return TRUE;
}