Changed ftp stor method and typo

metadata
Chris Truncer 2015-12-03 13:16:09 -07:00
parent 95ca43814f
commit 68cdc2c90c
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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: