public function dir_opendir(string $path, int $options): bool
    {
        $path      = $this->resolvePath(vfsStream::path($path));
        $this->dir = null;

        /** @var vfsStreamDirectory|null $dir */
        $dir = $this->getContentOfType($path, vfsStreamContent::TYPE_DIR);
        if (null === $dir) {
            return false;
        }

        $this->dir = $dir;
        if (!$this->dir->isReadable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup())) {
            return false;
        }

        $this->dirIterator = $this->dir->getIterator();
        return true;
    }
public function dir_opendir(string $path, int $options): bool
    {
        $path      = $this->resolvePath(vfsStream::path($path));
        $this->dir = null;

        /** @var vfsStreamDirectory|null $dir */
        $dir = $this->getContentOfType($path, vfsStreamContent::TYPE_DIR);
        if (null === $dir) {
            return false;
        }

        $this->dir = $dir;
        if (!$this->dir->isReadable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup())) {
            return false;
        }

        $this->dirIterator = $this->dir->getIterator();
        return true;
    }
public function dir_opendir ( string $ path , int $ options ) : bool { $ path = $ this -> resolvePath ( vfsStream :: path ( $ path ) ) ; $ this -> dir = null ; /** @var vfsStreamDirectory|null $dir */ $ dir = $ this -> getContentOfType ( $ path , vfsStreamContent :: TYPE_DIR ) ; if ( null === $ dir ) { return false ; } $ this -> dir = $ dir ; if ( ! $ this -> dir -> isReadable ( vfsStream :: getCurrentUser ( ) , vfsStream :: getCurrentGroup ( ) ) ) { return false ; } $ this -> dirIterator = $ this -> dir -> getIterator ( ) ; return true ; }
opens a directory

@param   string  $path
@param   int     $options
@return  bool
opens a directory