Changed ftp stor method and typo
parent
95ca43814f
commit
68cdc2c90c
|
@ -49,7 +49,7 @@ class Client:
|
|||
if not self.file_transfer:
|
||||
ftp_file_name = helpers.writeout_text_data(data_to_transmit)
|
||||
|
||||
ftp.storlines(
|
||||
ftp.storbinary(
|
||||
"STOR " + ftp_file_name, open(helpers.ea_path()
|
||||
+ "/" + ftp_file_name))
|
||||
os.remove(helpers.ea_path() + "/" + ftp_file_name)
|
||||
|
|
|
@ -26,7 +26,7 @@ class Client:
|
|||
if cli_object.client_port is None:
|
||||
self.port = 25
|
||||
else:
|
||||
self.port = cli_object.client_ports
|
||||
self.port = cli_object.client_port
|
||||
if cli_object.file is None:
|
||||
self.file_transfer = False
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue