Koha-clms/Koha/File
Martin Renvoize 4db4d8be55
Bug 43088: Reuse _current_directory() instead of duplicating pwd() calls
_change_directory(), _list_files() and _is_connected() each called
$self->{connection}->pwd directly for their log payloads/connectivity
check, duplicating exactly what _current_directory() now provides as a
proper, documented internal accessor. Route them through it instead -
no behaviour change, just removing the duplication now that the
wrapper exists.

Test plan:
1. prove -r t/db_dependent/Koha/File/
   => All tests successful (32 tests), including the existing
      current_directory() and list_files()/change_directory() coverage.
2. koha-qa.pl -v 2 --more-tests
   => [PASS], no critic/pod warnings.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-03 13:00:34 +00:00
..
Transport Bug 43088: Reuse _current_directory() instead of duplicating pwd() calls 2026-08-03 13:00:34 +00:00
Transport.pm Bug 43088: Add a consistent current_directory() accessor to Koha::File::Transport 2026-08-03 13:00:33 +00:00
Transports.pm Bug 38489: Add rename_file method to transport system and Local transport class 2025-10-14 14:51:47 -06:00