node-red-contrib-ftp-sftp 1.8.8

A node-red node that support FTP and SFTP file transfer using $() environment variables to control the ftp connection details

npm install node-red-contrib-ftp-sftp

node-red-contrib-ftp-sftp by Harding Point

http://www.HardingPoint.com

A Node-RED node to FTP and SFTP Client. This is a work in progress but does work to list and put files. Please send log issues or email requests to [email protected]. (https://github.com/HardingPoint/node-red-contrib-ftp-sftp)

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-ftp-sftp

Configuration

process.env.SFTP_SSH_KEY_FILE - If you want to use private SSH key set this environment variable

SFTP & FTP

PUT - Set msg.payload.filedata to the file contents you want pushed and will be uploaded to {GUID}.FileExtension. If you need more changes file request to github.

GET - Set msg.payload.filename to get the file or will use Workdir + Filename in configuration. Leave configuration blank to set in code.

DELETE - Set msg.payload.filename to delete the file or will use Workdir + Filename in configuration. Leave configuration blank to set in code.

LIST - Uses the workdir

Sample Function Node

// ----------------------------------------------------
//      All functions above use information.
//      Sample Javascript Used In Function Node
// ----------------------------------------------------
msg.payload = {};
msg.payload.filename="./SAMPLE_FILE.txt"; // Full Path
msg.payload.filedata='{}'; // Needs to be a string
return msg;
// ----------------------------------------------------

Acknowledgements

The node-red-contrib-force uses the following open source software:

License

See [license] (https://github.com/HardingPoint/node-red-contrib-ftp-sftp/blob/master/LICENSE) (Apache License Version 2.0).

Node Info

Version: 1.8.8
Updated 6 years, 7 months ago
License: MIT
Rating: 0.0

Categories

Actions

Rate:

Downloads

59 in the last week

Nodes

  • ftp
  • ftp in
  • sftp
  • sftp in

Keywords

  • node-red
  • ftp
  • sftp
  • redconnect

Maintainers