class EL_FTP_UPLOAD_ITEM

(source code)

Client examples: BACKUP_CONFIGDJ_EVENTS_PUBLISHERFAUX_FTP_PROTOCOLFTP_BACKUPFTP_BACKUP_COMMAND_1FTP_TEST_SET

Description

Ftp upload item

note
	description: "Ftp upload item"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2019-09-09 16:56:28 GMT (Monday 9th September 2019)"
	revision: "7"

class
	EL_FTP_UPLOAD_ITEM

inherit
	ANY EL_MODULE_LIO

create
	make, make_default

feature {NONE} -- Initialization

	make (a_source_path: like source_path; a_destination_dir: EL_DIR_PATH)
		do
			source_path := a_source_path; destination_dir := a_destination_dir
		end

	make_default
		do
			create destination_dir
			create source_path
		end

feature -- Basic operations

	display (verb: READABLE_STRING_GENERAL)
		do
			lio.put_path_field (verb, source_path); lio.put_path_field (" to", destination_dir)
			lio.put_new_line
		end

feature -- Element change

	set_destination_dir (a_destination_dir: like destination_dir)
		do
			destination_dir := a_destination_dir
		end

	set_source_path (a_source_path: like source_path)
		do
			source_path := a_source_path
		end

feature -- Access

	destination_file_path: EL_FILE_PATH
		do
			Result := destination_dir + source_path.base
		end

	destination_dir: EL_DIR_PATH

	source_path: EL_FILE_PATH

end