about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1999-01-18 20:34:42 +0000
committerGraham Barr <gbarr@pobox.com>1999-01-18 20:34:42 +0000
commitc381beadf33bd717be1ab8e28246fd1bee44066f (patch)
treee9287cfec139a91d69c0b1cb11d51dbd1ad801d1
parent7411c62eab0e6a48bca8460c856cb1b8a63a51a9 (diff)
downloadperl-libnet-c381beadf33bd717be1ab8e28246fd1bee44066f.tar.gz
Net::FTP
- Modify mkdir to call ->cwd(), not ->cd()

-rw-r--r--Net/FTP.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Net/FTP.pm b/Net/FTP.pm
index 64d79be..f79951a 100644
--- a/Net/FTP.pm
+++ b/Net/FTP.pm
@@ -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
       {