Answers for "typeerror: expected str, bytes or os.pathlike object, not list"

0

typeerror: expected str, bytes or os.pathlike object, not list

I think it has to do with your second element in storbinary. You are trying to open file, but it is already a pointer to the file you opened in line file = open(local_path,'rb'). So, try to use ftp.storbinary("STOR " + i, file).
Posted by: Guest on March-08-2021

Code answers related to "typeerror: expected str, bytes or os.pathlike object, not list"

Browse Popular Code Answers by Language