简体   繁体   English

如何检查文件内容是否已在 mule 4 中读取?

[英]How to check file content is already read in mule 4?

I have placed one file test.txt in the test folder and reading this file using the read connector in mule4.我在 test 文件夹中放置了一个文件 test.txt 并使用 mule4 中的读取连接器读取此文件。 I have created another file test1.txt with the same content as in test.txt.我创建了另一个文件 test1.txt,其内容与 test.txt 中的内容相同。 Now, I want to check the file content is already read or not.现在,我想检查文件内容是否已被读取。 How can we achieve this in mule4?我们如何在 mule4 中实现这一点?

A flow can be triggered by File connector listener.流可以由文件连接器侦听器触发。 You can configure it to move or delete a read file.您可以将其配置为移动或删除读取文件。 Other than that, if you want to keep a record of the files processed you will need to store the names into a database.除此之外,如果您想保留已处理文件的记录,则需要将名称存储到数据库中。 The connector doesn't keep a history.连接器不保留历史记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM