增加拉取文件之前的检查
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user