Without looking at how the filtering is done (e.g. regex / glob etc) your options are limited to:
- Do it yourself using
fs
- Do a secondary filter yourself (e.g.
msg.payload = msg.files.filter(e => /[()]/.test(e))
)
- raise an issue on the nodes asking for clarification and / or support finding special characters.
Demo
[{"id":"0d274cc377e7f340","type":"fs-ops-dir","z":"c2233fc1d8cc5c3b","name":"","path":"c:/temp","pathType":"str","filter":"*.jpg","filterType":"str","dir":"files","dirType":"msg","x":250,"y":1020,"wires":[["ca22c32c2e75240c","4017b79b997d447d"]]},{"id":"ca5b9642a534ca2a","type":"inject","z":"c2233fc1d8cc5c3b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":90,"y":1020,"wires":[["0d274cc377e7f340"]]},{"id":"ca22c32c2e75240c","type":"debug","z":"c2233fc1d8cc5c3b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"files","targetType":"msg","statusVal":"","statusType":"auto","x":580,"y":1020,"wires":[]},{"id":"4017b79b997d447d","type":"function","z":"c2233fc1d8cc5c3b","name":"has paren?","func":"msg.payload = msg.files.filter(e => /[()]/.test(e))\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":1100,"wires":[["a3fd82c83d8186c7"]]},{"id":"a3fd82c83d8186c7","type":"debug","z":"c2233fc1d8cc5c3b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":590,"y":1100,"wires":[]}]