Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-watchdirectory-recursive

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-watchdirectory-recursive

A watcher file/folder changed for [Node-RED](https://nodered.org/), based on [chokidar](https://github.com/paulmillr/chokidar)

  • 1.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-red-contrib-watchdirectory

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

BuyMeCoffee

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)/)

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

Keywords

FAQs

Package last updated on 23 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc