public function chdir($dir)
    {
        return ($this->isConnected() === true) ? ftp_chdir($this->getConnection(), $dir) : false;
    }
public function chdir($dir)
    {
        return ($this->isConnected() === true) ? ftp_chdir($this->getConnection(), $dir) : false;
    }
public function chdir ( $ dir ) { return ( $ this -> isConnected ( ) === true ) ? ftp_chdir ( $ this -> getConnection ( ) , $ dir ) : false ; }
Change directories.

@param (string) $dir directory
@param (string) $new naw name

@since 3.0.0

@return bool
Change directories .