diff --git a/client/client.py b/client/client.py index f6ae1a2..a71113b 100644 --- a/client/client.py +++ b/client/client.py @@ -50,19 +50,19 @@ def loadAddress() -> str: def printCommand(): print('\nInvalid command! Available commands:\n' + ' Create directory -> MKD \n' + - ' Remove directory -> RMV \n' + + ' Remove directory -> RMD \n' + ' Get current directory -> GWD \n' + ' Change current directory -> CWD \n' + ' List content of current directory -> LST \n' + ' Upload file to current directory -> UPL \n' + ' Download file from current directory -> DNL \n' + - ' Login -> LIN \n' + + ' Login -> LIN \n' + ' Logout -> LOUT \n') def printCommandsWihtoutLogin(): print('\nYou must log in before issuing other commads!\n', - ' Login -> LIN \n', + ' Login -> LIN \n', ' Exit -> EXIT\n') @@ -99,7 +99,7 @@ while True: print("Invalid command format!") continue - if separatedCommand[0] == 'LIN' and len(separatedCommand) == 3: + if separatedCommand[0] == 'LIN' and len(separatedCommand) == 2: network = NetWrapper(CLIENT_PRIVATE_KEY, CLIENT_ADDRESS, separatedCommand[1], SERVER_PUBLIC_KEY) try: network.connectToServer()