http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14012 --- Comment #1 from Olli-Antti Kivilahti <olli-antti.kivilahti@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.