$f_curdir = $ftp1->pwd(); $rc = $ftp1->cwd($dir_to_use); $ftp1->binary; @new_remote_list = $ftp1->dir(".");