https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40811

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |This enhancement introduces
      release notes|                            |a modernized dual API
                   |                            |design for Koha's file
                   |                            |transport system, making it
                   |                            |easier for developers to
                   |                            |work with FTP, SFTP, and
                   |                            |local file operations.
                   |                            |
                   |                            |  Key Improvements
                   |                            |
                   |                            |  Simplified API
                   |                            |(Recommended)
                   |                            |  - Automatic connection
                   |                            |management - no need for
                   |                            |manual connect() /
                   |                            |disconnect() calls
                   |                            |  - Per-operation directory
                   |                            |control via options hashref
                   |                            |  - Stateless operations
                   |                            |safe for concurrent usage
                   |                            |
                   |                            |  # Simple one-line
                   |                            |operations
                   |                            |
                   |                            |$transport->upload_file($lo
                   |                            |cal, $remote, { path =>
                   |                            |'/custom/' });
                   |                            |
                   |                            |$transport->download_file($
                   |                            |remote, $local);
                   |                            |  $transport->list_files({
                   |                            |path => '/incoming/' });
                   |                            |
                   |                            |  Traditional API (Still
                   |                            |Supported)
                   |                            |  - Manual connection and
                   |                            |directory management when
                   |                            |needed
                   |                            |  - Ideal for multiple
                   |                            |operations in the same
                   |                            |directory
                   |                            |  - Full backward
                   |                            |compatibility maintained
                   |                            |
                   |                            |  # Explicit control when
                   |                            |needed
                   |                            |
                   |                            |$transport->change_director
                   |                            |y('/work/');
                   |                            |
                   |                            |$transport->upload_file($lo
                   |                            |cal, 'file1.txt');
                   |                            |
                   |                            |$transport->upload_file($lo
                   |                            |cal, 'file2.txt');
                   |                            |
                   |                            |  Standardized Architecture
                   |                            |  - Consistent template
                   |                            |method pattern across all
                   |                            |transport types (SFTP, FTP,
                   |                            |Local)
                   |                            |  - Clear separation
                   |                            |between public API and
                   |                            |protocol-specific
                   |                            |implementation
                   |                            |  - Improved authentication
                   |                            |handling with fixes for
                   |                            |password-less connections
                   |                            |
                   |                            |  This is an internal API
                   |                            |enhancement that improves
                   |                            |code maintainability and
                   |                            |developer experience
                   |                            |without affecting end-user
                   |                            |functionality.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to