Neos\Flow\ResourceManagement\Streams\ResourceStreamWrapper::openDirectory PHP Метод

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

This method is called in response to opendir().
public openDirectory ( string $path, integer $options ) : boolean
$path string Specifies the URL that was passed to opendir().
$options integer Whether or not to enforce safe_mode (0x04).
Результат boolean TRUE on success or FALSE on failure.
    public function openDirectory($path, $options)
    {
        $resourceUriOrStream = $this->evaluateResourcePath($path);
        if (!is_string($resourceUriOrStream)) {
            return false;
        }
        $handle = $resourceUriOrStream !== false ? opendir($resourceUriOrStream) : false;
        if ($handle !== false) {
            $this->handle = $handle;
            return true;
        }
        return false;
    }