[Bug 14012] New: Koha::FTP, a happy FTP-library to supercharge FTP operations.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14012 Bug ID: 14012 Summary: Koha::FTP, a happy FTP-library to supercharge FTP operations. Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: gmcharlt@gmail.com Reporter: olli-antti.kivilahti@jns.fi QA Contact: testopia@bugs.koha-community.org When dealing with FTP-connections, we need to prepare for all kinds of remote connection failures. This library simply wraps exception handling and connection creation into a one nice package. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14012 Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |In Discussion -- You are receiving this mail because: You are watching all bug changes.
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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14012 Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |13995 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14012 Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gmcharlt@gmail.com |olli-antti.kivilahti@jns.fi -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org