Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. vfsStreamWrapper.php

function vfsStreamWrapper::dir_opendir

opens a directory

Parameters

string $path:

int $options:

Return value

bool

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php, line 934

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal