in reply to Net::FTP Server does not support cwd...alternatives?

It is not necessary to cd to directories to query their contents. Simply use the relative or absolute pathname to the directories you want to use:
use Net::FTP; $ftp = Net::FTP->new("some.host.name", Debug => 0); $ftp->login("anonymous",'-anonymous@'); $ftp->dir("/usr/local/ftp/mark"); $ftp->get("/usr/local/ftp/mark/that.file"); $ftp->quit;
-Mark

Replies are listed 'Best First'.
Re: Re: Net::FTP Server does not support cwd...alternatives?
by linebacker (Scribe) on Jun 14, 2002 at 17:57 UTC
    Thanks for the responses. As soon as I read them I thought why didn't I think of that. Tunnel Vision. Thanks a lot!