[Koha-bugs] [Bug 14012] Koha::FTP, a happy FTP-library to supercharge FTP operations.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Apr 19 16:48:42 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14012
--- Comment #1 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 38132
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38132&action=edit
Bug 14012 - Koha::FTP, a happy FTP-library to supercharge FTP operations.
try {
my $ftp = Koha::FTP->new( Net::FTP->new() );
my $currentDir = $ftp->getCurrentFtpDirectory();
$ftp->changeFtpDirectory($targetDirectory, $ftp);
$ftp->putFtpFile($filePath, $ftp);
$ftp->changeFtpDirectory($currentDir, $ftp);
$ftp->deleteFtpFile($fileName, $ftp);
catch {
if (blessed($_) && $_->isa('Koha::Exception::ConnectionFailed')) {
warn $_->error()."\n";
}
}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list