diff --git a/client/client.py b/client/client.py index 31b96e5..01f27fc 100644 --- a/client/client.py +++ b/client/client.py @@ -56,6 +56,7 @@ def printCommand(): ' Get current directory -> GWD \n' + ' Change current directory -> CWD \n' + ' List content of current directory -> LST \n' + + ' Remove file from current directory -> RMF \n' + ' Upload file to current directory -> UPL \n' + ' Download file from current directory -> DNL \n' + ' Login -> LIN \n' + @@ -161,6 +162,11 @@ while True: print(network.recieveMessage().decode('UTF-8')) continue + if separatedCommand[0] == 'RMF' and len(separatedCommand) == 2: + network.sendMessage(command.encode('UTF-8')) + print(network.recieveMessage().decode('UTF-8')) + continue + if separatedCommand[0] == 'UPL' and len(separatedCommand) == 2: if os.path.isfile(separatedCommand[1]): cmd = 'UPL ' + separatedCommand[1].split(os.path.sep)[-1]