<<

NAME

Koha::File::Transport::FTP - FTP implementation of file transport

Class methods

_connect

    my $success = $self->_connect;

Start the FTP transport connect, returns true on success or undefined on failure.

_upload_file

Internal method that performs the FTP-specific upload operation.

Returns true on success or undefined on failure.

_download_file

Internal method that performs the FTP-specific download operation.

Returns true on success or undefined on failure.

_change_directory

    my $success = $server->_change_directory($directory);

Passed a directory name, this will change the current directory of the server connection.

Returns true on success or undefined on failure.

_list_files

Internal method that performs the FTP-specific file listing operation. Returns an array reference of hashrefs with file information. Each hashref contains: filename, longname, size, perms.

_rename_file

Internal method that performs the FTP-specific file rename operation.

Returns true on success or undefined on failure.

_disconnect

    $server->_disconnect();

Disconnects from the FTP server.

_is_connected

Internal method to check if transport is currently connected.

DESTROY

Ensure proper cleanup of FTP connections

<<