Windows file checker

A node for Node-RED to check if file exist.

Run the following command in your Node-RED user directory - typically '~/.node-red'

npm install node-red-contrib-file-checker
[{"id":"a81bdad2.e849d8","type":"debug","z":"fcf6cbb5.d944e8","name":"","active":true,"console":"false","complete":"true","x":670,"y":1090,"wires":[]},{"id":"878e2c7c.a1849","type":"inject","z":"fcf6cbb5.d944e8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":150,"y":1090,"wires":[["188e4dd0.de8372"]]},{"id":"188e4dd0.de8372","type":"function","z":"fcf6cbb5.d944e8","name":"","func":"msg.filename = \"C:\\\\filename.csv\";\nreturn msg;","outputs":1,"noerr":0,"x":300,"y":1090,"wires":[["12908d0b.751543"]]},{"id":"12908d0b.751543","type":"filechecker","z":"fcf6cbb5.d944e8","filename":"","name":"","x":480,"y":1090,"wires":[["a81bdad2.e849d8"]]}]
luiey

Flow Info

created 1 week, 4 days ago

Node Types

Core
  • debug (x1)
  • function (x1)
  • inject (x1)
Other
  • filechecker (x1)

Tags

  • filechecker
  • fileexist
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option