Oct-24-2019, 09:02 AM
I meant line 17 before,
however, I changed that line from
however, I changed that line from
if data[:6] == 'EXISTS':to
if data.decode().startswith('EXISTS'):and got this error
Error:enter file name ->upper.txt
Traceback (most recent call last):
File "C:/Users//PycharmProjects/client-server/client_2.py", line 37, in <module>
Main()
File "C:/Users//PycharmProjects/client-server/client_2.py", line 17, in Main
filesize = int(data[:6]).encode()
ValueError: invalid literal for int() with base 10: b'EXISTS'
Process finished with exit code 1