A way to know If a File Exist

Hi all
I'm working with Node-Red version v0.18.1 on Raspian version 9.
I would to know if there is a way to know if a file exist ad put the result in a Switch.

thanks in advance

There are some filing system nodes around, check the flows site. Otherwise you can add a reference to the fs node library to the globals section in settings.js and then use global.get in a function. You can then use fs inside the function and just use the node.js functions.

I'm particular...

fs-ops-access - Test existence and accessibility of a file or directory