nvflare.fuel.hci.client.file_transfer module

class FileTransferModule(upload_dir: str, download_dir: str)[source]

Bases: CommandModule

Command module with commands relevant to file transfer.

PULL_BINARY_FILE_CMD = 'pull_binary_file'
generate_module_spec(server_cmd_spec: CommandSpec)[source]

Generate a new module spec based on a server command

Parameters:

server_cmd_spec

Returns:

get_spec()[source]
info(args, ctx: CommandContext)[source]
pull_binary_file(args, ctx: CommandContext)[source]

Args: cmd_name, source_fqcn, tx_id, ref_id, folder_name, file_name, [end]

pull_folder(args, ctx: CommandContext)[source]
push_folder(args, ctx: CommandContext)[source]