处理CNC文件下发失败的bug
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user