Skip to content

Sintattica/node-red-contrib-ftp

 
 

Repository files navigation

node-red-contrib-ftp

Pre-requisites

The node-red-contrib-ftp requires Node-RED to be installed.

Install

cd ~/.node-red/node_modules
git clone https://github.com/sintattica/node-red-contrib-ftp.git
cd node-red-contrib-ftp && sh install.sh

After restart your Node-RED instance, the ftp node will appears in the palette and ready for use.

Update

cd ~/.node-red/node_modules/node-red-contrib-ftp
sh deploy.sh

Usage

This node will allow you to LIST, LIST-SAFE, GET, PUT, DELETE, MKDIR, RMDIR, APPEND, RENAME and LASTMOD files on a remote FTP server.

The GET and PUT options use msg.filename (the path/name of the file on the remote machine) and msg.localFilename (the path/name of the file on the local machine - i.e. the one running NR).

The DELETE option only specifies msg.filename (the path/name of the file on the remote machine)

The LIST option returns an array of the file/folders in the user's default ftp folder, containing type, name, sticky, rights(an object), acl, owner, group, size and date.

todo...

Example

todo...

Acknowledgements

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

  • node-ftp: node-ftp is an FTP client module for node.js that provides an asynchronous interface for communicating with an FTP server.

License

See license (Apache License Version 2.0).

About

A Node-RED node to FTP Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 75.0%
  • JavaScript 23.8%
  • Shell 1.2%