cancel
Showing results for 
Search instead for 
Did you mean: 

How to add multiple file filter to a file poller

krupalibshah
Contributor

I want my file poller to poll all txt and xml files how can I specify the same in the file filter property?

*.txt && *.xml is only selecting txt files.

3 REPLIES 3

aleung
Contributor III

Unsure if it would work but have you try the following?

*.csv || *.xml

del
Contributor III

The documentation says File Poller uses GLOB pattern for the filter. Some GLOB pattern implementations use extended syntax called Brace Expansion, so try *.{csv,xml}. I haven’t tested with File Poller but it seems to work for Directory Browser.

sanjaynayak
New Contributor III

@del, yes this is a workable solution for file poller too! but it depend on what pattern we are following to filter.