Skip to content

Node red contrib for CRUD operations on SFTP server, wrapper for ssh2-sftp-client

License

Notifications You must be signed in to change notification settings

fatoldsun00/node-red-contrib-sftpco

Repository files navigation

node-red-contrib-sftpco

An SFTP client for node-red, wrapper for ssh2-sftp-client

BuyMeCoffee

Why anoher node for SFTP connection ?

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

About

Node red contrib for CRUD operations on SFTP server, wrapper for ssh2-sftp-client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published