处理CNC文件下发失败的bug

This commit is contained in:
qihao.gong@jikimo.com
2024-01-10 15:48:03 +08:00
parent cac7815369
commit e6866552bc
4 changed files with 22 additions and 14 deletions

View File

@@ -35,8 +35,9 @@ class FtpController():
server = os.path.join(serverdir, file)
if file.find(".") != -1:
self.download_file(server, file)
return 1
except Exception:
return False
return 0
# 下载指定目录下的指定文件
def download_file(self, serverfile, remotefile):