diff options
author | Graham Barr <gbarr@pobox.com> | 1999-01-18 20:34:42 +0000 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 1999-01-18 20:34:42 +0000 |
commit | c381beadf33bd717be1ab8e28246fd1bee44066f (patch) | |
tree | e9287cfec139a91d69c0b1cb11d51dbd1ad801d1 | |
parent | 7411c62eab0e6a48bca8460c856cb1b8a63a51a9 (diff) | |
download | perl-libnet-c381beadf33bd717be1ab8e28246fd1bee44066f.tar.gz |
Net::FTP
- Modify mkdir to call ->cwd(), not ->cd()
-rw-r--r-- | Net/FTP.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,7 +21,7 @@ use Net::Cmd; use Net::Config; # use AutoLoader qw(AUTOLOAD); -$VERSION = "2.49"; # $Id: //depot/libnet/Net/FTP.pm#34 $ +$VERSION = "2.50"; # $Id: //depot/libnet/Net/FTP.pm#35 $ @ISA = qw(Exporter Net::Cmd IO::Socket::INET); # Someday I will "use constant", when I am not bothered to much about @@ -504,10 +504,10 @@ sub mkdir my($status,$message) = ($ftp->status,$ftp->message); my $pwd = $ftp->pwd; - if($pwd && $ftp->cd($dir)) + if($pwd && $ftp->cwd($dir)) { $path = $dir; - $ftp->cd($pwd); + $ftp->cwd($pwd); } else { |