How can I filter the file list in 2 types of files (CSV, XML) just files that has those extensions with a filepattern?
Asked
Active
Viewed 424 times
-2
-
Which version of Mule are you using? – aled Aug 15 '22 at 01:41
-
is the version 4.3.1 – Jesus Abraham Felix González Aug 15 '22 at 01:58
2 Answers
1
Use the <file:matcher>
element as mentioned in the documentation examples.
Example:
<file:list path="/somepath">
<file:matcher filenamePattern="*.{csv,xml}" />
</file:list>

aled
- 21,330
- 3
- 27
- 34
0
Please find sample below
<file:config name="File_Config" doc:name="File Config" doc:id="7f86b325-8109-4447-8205-f96ecd87434d" />
<flow name="tempFlow" doc:id="0f9cf686-a0f4-45d0-8a85-864468099c07">
<file:list doc:name="List" doc:id="2e122fad-5c98-47d3-acfc-3f014b8aee87" config-ref="File_Config" directoryPath="/dir/" matcher="csv, xml"/>
</flow>

Tyler2P
- 2,324
- 26
- 22
- 31