修改ftp返回

This commit is contained in:
朱明明
2020-04-16 17:41:31 +08:00
parent acc676857b
commit 7bdf2695e1

View File

@@ -110,9 +110,9 @@ class Order:
fsize = os.path.getsize(linux_path + "/"+fiel_name) # 435814
print(fsize)
if fsize == file_size:
return "Success"
return "ftp_success"
else:
return "Fail"
return "ftp_fail"
# FTP 登录
def FTP_login(self, ftp_url,file_content):
@@ -120,9 +120,9 @@ class Order:
d = self.CMD(data)
# print(d)
if file_content in d:
return "Success"
return "ftp_success"
else:
return "Fail"
return "ftp_fail"
if __name__ == '__main__':
datas = {"url":['https://www.baidu.com'],