This commit is contained in:
parent
f345d4b961
commit
b6b3dd3a35
@ -94,11 +94,10 @@ class Server:
|
||||
if secondParam != "":
|
||||
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
||||
else:
|
||||
fileName = firstParam
|
||||
fileMessage = self.networkInstance.recieveMessage()
|
||||
eof = self.networkInstance.recieveEncryptedMessage().decode('UTF-8')
|
||||
eof = self.networkInstance.recieveMessage().decode('UTF-8')
|
||||
if eof == "EOF":
|
||||
self.executor.putFileInCurrentDirectory(fileName, fileMessage)
|
||||
self.executor.putFileInCurrentDirectory(firstParam, fileMessage)
|
||||
self.networkInstance.sendMessage("OK".encode('UTF-8'))
|
||||
else:
|
||||
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
||||
|
Loading…
Reference in New Issue
Block a user