You are here

public function vfsStreamWrapper::dir_opendir in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php \org\bovigo\vfs\vfsStreamWrapper::dir_opendir()

opens a directory

Parameters

string $path:

int $options:

Return value

bool

1 call to vfsStreamWrapper::dir_opendir()
vfsStreamWrapperRecordingProxy::dir_opendir in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/proxy/vfsStreamWrapperRecordingProxy.php
opens a directory
1 method overrides vfsStreamWrapper::dir_opendir()
vfsStreamWrapperRecordingProxy::dir_opendir in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/proxy/vfsStreamWrapperRecordingProxy.php
opens a directory

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php, line 928

Class

vfsStreamWrapper
Stream wrapper to mock file system requests.

Namespace

org\bovigo\vfs

Code

public function dir_opendir($path, $options) {
  $path = $this
    ->resolvePath(vfsStream::path($path));
  $this->dir = $this
    ->getContentOfType($path, vfsStreamContent::TYPE_DIR);
  if (null === $this->dir || $this->dir
    ->isReadable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()) === false) {
    return false;
  }
  $this->dirIterator = $this->dir
    ->getIterator();
  return true;
}