文件存在于 mulesoft 中

File exists in mulesoft

我有一个目录,其中保存了多个文件。 文件名-备份-input.txt 我想检查这个文件在我的位置是否存在。 我是 Mulesoft 的新手。 谁能建议正确的方法来做到这一点?

我没有找到任何文件组件的解决方案。

只需使用表达式组件并将表达式设置为类似以下内容:

flowVars.myFiles = new File("C:\MyFiles\Adoc.txt");

然后

flowVars.myFiles.exists()

https://docs.mulesoft.com/mule-user-guide/v/3.9/expression-component-reference