Hi! I’m using n8n to detect changes in a local directory and I would like to use the Local File Trigger node with the ‘Ignore’ option and the anymatch syntax but don’t know how and the documentation doesn’t explain much about this. Anybody could help pls?
Now imagine your job is to write some Javascript code that generates the matchers object.
If you switched the “Ignore” entry field from Fixed to Expression, you can then type in some Javascript that would generate the relevant matchers object. (In your mind’s eye, just imagine that n8n is calling anymatch(matchers, <path>) for you on every ingested file.)
So here’s an example of the “Ignore” field (Expression mode) from my setup, which seems to work:
This seems not work work for me - are multiple ignores supported as of version 1.109.2
I have wrote an array but the file is still matched and the workflow triggered. Even with “Shopware_Artikel*.csv” in the array.
Sure, we could add an if node after the trigger. But we are on a business plan so it would be nice to not “waste” executions for files we don’t want to start the workflow with.
Also we don’t want to clutter the execution history.