Forum Discussion

krupalibshah's avatar
krupalibshah
Contributor
8 years ago

How to add multiple file filter to a file poller

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

  • aleung's avatar
    aleung
    Contributor III

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

    *.csv || *.xml

  • del's avatar
    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's avatar
      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.