📌  相关文章
📜  typeerror: expected str, bytes or os.pathlike object, not list - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:54.103000             🧑  作者: Mango

代码示例1
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).