elif typo to fix invalid command at every command
This commit is contained in:
parent
a2fb95b7f3
commit
6f22116691
|
@ -136,7 +136,7 @@ def ftp_cient(host, port):
|
||||||
elif command.upper() == "RNTO":
|
elif command.upper() == "RNTO":
|
||||||
oldName, newName = args.split(" ", 1)
|
oldName, newName = args.split(" ", 1)
|
||||||
sock.sendall(f"RNTO {oldName} {newName}\r".encode())
|
sock.sendall(f"RNTO {oldName} {newName}\r".encode())
|
||||||
if command.upper() == "HELP":
|
elif command.upper() == "HELP":
|
||||||
handle_HELP(sock, args)
|
handle_HELP(sock, args)
|
||||||
else:
|
else:
|
||||||
print("Invalid command")
|
print("Invalid command")
|
||||||
|
|
Loading…
Reference in New Issue