增加拉取文件之前的检查

This commit is contained in:
mgw
2024-09-14 14:32:40 +08:00
parent bb60fd0339
commit 589a24f595

View File

@@ -426,7 +426,7 @@ class ResMrpWorkOrder(models.Model):
logging.info('local_file_path:%s' % local_file_path) logging.info('local_file_path:%s' % local_file_path)
remote_path = '/home/ftp/ftp_root/ThreeTest/XT/Before/' + local_filename remote_path = '/home/ftp/ftp_root/ThreeTest/XT/Before/' + local_filename
logging.info('remote_path:%s' % remote_path) logging.info('remote_path:%s' % remote_path)
# if not ftp.file_exists(remote_path): if not ftp.file_exists(remote_path):
paload_data = { paload_data = {
"filename": local_filename "filename": local_filename
} }