method

chdir

ruby latest stable - Class: Net::FTP
chdir(dirname)
public

Changes the (remote) directory.