org\bovigo\vfs\vfsStreamWrapper::dir_opendir PHP Метод

dir_opendir() публичный Метод

opens a directory
public dir_opendir ( string $path, integer $options ) : boolean
$path string
$options integer
Результат boolean
    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;
    }