Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/FTP/Raku/ftp.raku
Normal file
17
Task/FTP/Raku/ftp.raku
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use Net::FTP;
|
||||
|
||||
my $host = 'speedtest.tele2.net';
|
||||
my $user = 'anonymous';
|
||||
my $password = '';
|
||||
|
||||
my $ftp = Net::FTP.new( host => $host, :passive );
|
||||
|
||||
$ftp.login( user => $user, pass => $password );
|
||||
|
||||
$ftp.cwd( 'upload' );
|
||||
|
||||
$ftp.cwd( '/' );
|
||||
|
||||
say $_<name> for $ftp.ls;
|
||||
|
||||
$ftp.get( '1KB.zip', :binary );
|
||||
Loading…
Add table
Add a link
Reference in a new issue