node-red-contrib-watchdirectory 1.0.14

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

npm install 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 :

  • file : the name of the file, with extension
  • filedir : Directory of file
  • filename: the complete path to the file
  • payload: the complete path to the file

On configuration side we can :

  • Select the folder to watch (of course ....)
  • Type event : create, update, delete
  • Check for recursively or not
  • ignore file who are in directory are start (or not)
  • ignore files on regex based, only String !, not type the / for regextype (I.E. ^test.(txt|xls) not /^test.(txt|xls)/)


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


Install via Node-RED Manage Palette


Install via npm

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


PR are welcome

Node Info

Version: 1.0.14
Updated 3 years, 9 months ago
License: ISC
Rating: 4.0 4




91 in the last week


  • watch-directory


  • nodered
  • node-red
  • node red
  • file watcher
  • file watch
  • folder watcher
  • watch folder
  • directory
  • watcher
  • watch