upload_file#

Client.upload_file(local_filename, remote_filename, chunk_size=65536)#

Upload a file to the server.

Parameters:
  • local_filename (str) – Name of the local file to upload.

  • remote_filename (str) – Name of the remote file to create.

  • chunk_size (int, default: 65536) – Maximum size in bytes of a chunk of data to transfer per request.

Raises:

RuntimeError : – If a response indicates an error on the server-side.

Return type:

None