fp = open(local_path, "rb") # buf_size = 4096 # f.storbinary("STOR {}".format(remote_path), fp, buf_size) f.storbinary("STOR {}".format(remote_path), fp) fp.close()
python ftp upload jpg
最新推荐文章于 2022-05-31 12:03:25 发布
fp = open(local_path, "rb") # buf_size = 4096 # f.storbinary("STOR {}".format(remote_path), fp, buf_size) f.storbinary("STOR {}".format(remote_path), fp) fp.close()