Search code examples
mulemulesoftmule4mule-esbmule-connector

File Connector use a File Pattern with the list operation


How can I filter the file list in 2 types of files (CSV, XML) just files that has those extensions with a filepattern?


Solution

  • Use the <file:matcher> element as mentioned in the documentation examples.

    Example:

    <file:list path="/somepath">
        <file:matcher filenamePattern="*.{csv,xml}" />
    </file:list>