Skip to content

Gankarloo/Net-FTP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Net::FTP

Build Status

perl6 Net::FTP

A simple ftp client module written in perl6.

Usage

use Net::FTP;
use Net::FTP::Config;

my $ftp = Net::FTP.new(:host<ftpserver>, :user<user>, :pass<pass>, :passive);

if $ftp.login() {
	mkdir('./ftpfile/');
	$ftp.cwd('/');
	for $ftp.ls() -> %info {
		next if (%info<name> eq '.' || %info<name> eq '..');
		if %info<type> == FILE::NORMAL {
			if $ftp.get(~%info<name>, "./ftpfile/", :binary) {
				say "GET %info<name> OK";
			}
		}
	}
	$ftp.quit();
}

Installation

install with panda

panda install Net::FTP

WARNING

  • Net::FTP::Format - getyear(), gettimet(), not yet implement.
  • Net::FTP - FTP only implemented passive mode.

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%