Koha-clms/Koha/File/Transport
Martin Renvoize e3618ceb1b
Bug 38489: Standardize FTP transport API to match SFTP and Local classes
Fix several API inconsistencies in the FTP transport class:

1. Message format: Use standardized `message => $operation` format
   instead of hardcoded strings like "Upload succeeded"

2. Operation tracking: Add $operation variable to all methods for
   consistent error reporting and logging

3. Error handling: Update _abort_operation() to accept operation
   parameter and provide more detailed error payloads

4. Success payloads: Replace empty `detail => ''` payloads with
   meaningful operation-specific information (host, port, file paths,
   directory info, file counts)

All transport classes now have consistent APIs for:
- Standardized message formats
- Consistent operation tracking
- Uniform error handling
- Informative success payloads

Sponsored-by: ByWater Solutions
Signed-off-by: Hannah Dunne-Howrie <hdunne-howrie@westminster.gov.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-14 14:51:49 -06:00
..
FTP.pm Bug 38489: Standardize FTP transport API to match SFTP and Local classes 2025-10-14 14:51:49 -06:00
Local.pm Bug 38489: Standardize list_files API across all transport classes 2025-10-14 14:51:48 -06:00
SFTP.pm Bug 38489: Standardize list_files API across all transport classes 2025-10-14 14:51:48 -06:00