fatoldsun00 / node-red-contrib-watchdirectory

Watch directory for create, update, delete event
9 stars 6 forks source link

I don't maintain this repo anymore, but i can change owner if there are somebody who want maintain.

node-red-contrib-watchdirectory

A watcher file/folder changed for Node-RED, based on chokidar

Why a third node for watching folder ?

Because the natif node watcher is low level, and trigger "add file" event before file is completed copy on disk. then we need delai and RBE node ...

The other watcher (wfwatcher) check recursively and attach filename to payload... Most of nodes who work with file check msg.filename.

So this plugin attach to msg :

On configuration side we can :

Prerequisites

Have Node-RED installed and working, if you need to install Node-RED see here.

Installation

Install via Node-RED Manage Palette

node-red-contrib-watchdirectory

Install via npm

$ cd ~/.node-red
$ npm install node-red-contrib-watchdirectory
# then restart node-red

Contribute

PR are welcome