http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14012
--- Comment #1 from Olli-Antti Kivilahti <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
