Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Net::FTP Server does not support cwd...alternatives?

by atopolc (Pilgrim)
on Jun 14, 2002 at 17:26 UTC ( [id://174646]=note: print w/replies, xml ) Need Help??


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

You can use the path in your call to get. Replace your call to get with this one.
$ftpBox->get("$remotedir/$filename","$destination_dir/$filename") or die "failed to get $filename to $destination_file";

If your just interested in checking to see if a directory exists. Then an ls or dir is almost as good as cd.

$ftpBox->ls($remotedir); #or $ftpBox->dir($remotedir);
Updated: Added a little more info.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://174646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found