Pop\Ftp\Ftp::chdir PHP Method

chdir() public method

Change directories.
public chdir ( string $dir ) : Ftp
$dir string
return Ftp
    public function chdir($dir)
    {
        if (!ftp_chdir($this->conn, $dir)) {
            throw new Exception('Error: There was an error changing to the directory ' . $dir);
        }
        return $this;
    }