public function dir_opendir($path, $options = 0)
    {
        if ($this->dirHandle !== null) {
            return false;
        }
        self::restore();
        $path = self::overlayPath($path);
        $this->dirHandle = opendir($path);
        self::register();
        return $this->dirHandle !== false;
    }
public function dir_opendir($path, $options = 0)
    {
        if ($this->dirHandle !== null) {
            return false;
        }
        self::restore();
        $path = self::overlayPath($path);
        $this->dirHandle = opendir($path);
        self::register();
        return $this->dirHandle !== false;
    }
public function dir_opendir ( $ path , $ options = 0 ) { if ( $ this -> dirHandle !== null ) { return false ; } self :: restore ( ) ; $ path = self :: overlayPath ( $ path ) ; $ this -> dirHandle = opendir ( $ path ) ; self :: register ( ) ; return $ this -> dirHandle !== false ; }
Opens a directory for reading

@param string $path
@param int $options
@return bool
Opens a directory for reading