<<

NAME

Koha::File::Transport::Local - Local file system implementation of file transport

Class methods

_connect

    my $success = $self->_connect;

Validates that the configured directories exist and have appropriate permissions.

_upload_file

Internal method that performs the local file system upload operation.

Returns true on success or undefined on failure.

_download_file

Internal method that performs the local file system download operation.

Returns true on success or undefined on failure.

_change_directory

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

Sets the current working directory for file operations.

Returns true on success or undefined on failure.

_list_files

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

_rename_file

Internal method that performs the local file system file rename operation.

Returns true on success or undefined on failure.

_is_connected

Internal method to check if transport is currently connected. For local transport, always returns true as local filesystem is always accessible.

_disconnect

    $server->_disconnect();

For local transport, this is a no-op as there are no connections to close.

<<