elif typo to fix invalid command at every command

This commit is contained in:
xypoon 2023-03-20 19:41:29 +08:00
parent a2fb95b7f3
commit 6f22116691
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ def ftp_cient(host, port):
elif command.upper() == "RNTO":
oldName, newName = args.split(" ", 1)
sock.sendall(f"RNTO {oldName} {newName}\r".encode())
if command.upper() == "HELP":
elif command.upper() == "HELP":
handle_HELP(sock, args)
else:
print("Invalid command")