We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06c87de commit dc3287eCopy full SHA for dc3287e
server.py
@@ -30,10 +30,12 @@ def handle(self):
30
31
if cmd == 'u' or cmd == 'U':
32
filename = protocol_handler.get_input("Filename: ")
33
+ if not filename;ì: break
34
logging.info(f"Upload request from {self.client_address}. File: {filename}")
35
file_handler.upload(filename)
36
elif cmd == 'd' or cmd == 'D':
37
38
+ if not filename: break
39
logging.info(f"Download request from {self.client_address}. File: {filename}")
40
file_handler.download(filename)
41
elif cmd == 'l' or cmd == 'L':
0 commit comments