class EL_FTP_FILE_SYNC_MEDIUM
Client examples: NETWORK_AUTOTEST_APP ; REPOSITORY_PUBLISHER
FTP file synchronization medium
note
description: "FTP file synchronization medium"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2024-05-13 13:12:47 GMT (Monday 13th May 2024)"
revision: "8"
class
EL_FTP_FILE_SYNC_MEDIUM
inherit
EL_FILE_SYNC_MEDIUM
undefine
is_equal, log_error
end
EL_FTP_PROTOCOL
rename
set_current_directory as set_remote_home,
current_directory as home_dir
redefine
Max_login_attempts
end
create
make_write
feature -- Basic operations
copy_item (item: EL_FILE_SYNC_ITEM)
do
transfer_file (item.source_path, item.file_path)
end
log_error (log: EL_LOGGABLE)
do
log.put_integer_field (error_text (error_code), last_reply_code)
log.put_new_line
log.put_line (last_reply_utf_8)
end
remove_item (item: EL_FILE_SYNC_ITEM)
-- remove old item
do
delete_file (item.file_path)
end
feature {NONE} -- Constants
Max_login_attempts: INTEGER
once
Result := 1000
end
end