From e61d81aad59b55f115a0787b044c9d3e55034458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=98=8E=E6=98=8E?= Date: Tue, 14 Apr 2020 17:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ftp=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 04-CustomLibrary/Custometest/cmd_cer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/04-CustomLibrary/Custometest/cmd_cer.py b/04-CustomLibrary/Custometest/cmd_cer.py index da56129..a0f1bce 100644 --- a/04-CustomLibrary/Custometest/cmd_cer.py +++ b/04-CustomLibrary/Custometest/cmd_cer.py @@ -100,16 +100,16 @@ class Order: else: return "Fail" # FTP 下载 - def FTP_down(self, ftp_url,file_size,fiel_name): + def FTP_down(self, ftp_url,file_size,file_name): windows_path = os.getcwd() linux_path = os.getcwd().replace('\\', '/') # 判断FTP执行类型:(下载/登录) # 调用cmd执行FTP下载文件 - data = 'curl -m 20 '+ftp_url+ '-o '+ fiel_name + " ' " + data = 'curl -m 20 '+ftp_url+ '-o '+ file_name + " ' " print(data) d = self.CMD(data) sleep(5) - fsize = os.path.getsize(linux_path + "/"+fiel_name) # 435814 + fsize = os.path.getsize(linux_path + "/"+file_name) # 435814 print(fsize) if fsize == file_size: return "Success"