home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl_ste.zip
/
auto
/
Net
/
FTP
/
pasv_xfer_unique.al
< prev
next >
Wrap
Text File
|
1997-11-28
|
452b
|
25 lines
# NOTE: Derived from ./blib/lib/Net/FTP.pm. Changes made here will be lost.
package Net::FTP;
sub pasv_xfer_unique
{
my($sftp,$sfile,$dftp,$dfile) = @_;
($dfile = $sfile) =~ s#.*/##
unless(defined $dfile);
my $port = $sftp->pasv or
return undef;
unless($dftp->port($port) && $sftp->retr($sfile) && $dftp->stou($dfile))
{
$sftp->abort;
$dftp->abort;
return undef;
}
$dftp->pasv_wait($sftp);
}
1;