From 50a280b5768ac2ffe679dcb2917afb3cc739a07d Mon Sep 17 00:00:00 2001 From: "DESKTOP-DPA61F8\\Benedek" Date: Mon, 26 Apr 2021 13:39:31 +0200 Subject: [PATCH 1/3] LIN cmd update --- client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.py b/client/client.py index f6ae1a2..a47fa67 100644 --- a/client/client.py +++ b/client/client.py @@ -56,13 +56,13 @@ def printCommand(): ' 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') From e7e2ee4a00f4acf836fb0e49e3343acaf50fd986 Mon Sep 17 00:00:00 2001 From: "DESKTOP-DPA61F8\\Benedek" Date: Mon, 26 Apr 2021 13:51:16 +0200 Subject: [PATCH 2/3] Len in LIN --- client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.py b/client/client.py index a47fa67..ee5955e 100644 --- a/client/client.py +++ b/client/client.py @@ -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() From 3c9c224cf0fe24c646605b6c442f101da5fc63f5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-DPA61F8\\Benedek" Date: Mon, 26 Apr 2021 14:40:48 +0200 Subject: [PATCH 3/3] Patch --- client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.py b/client/client.py index ee5955e..a71113b 100644 --- a/client/client.py +++ b/client/client.py @@ -50,7 +50,7 @@ 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' +