The node-red-contrib-ftp requires Node-RED to be installed.
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.
cd ~/.node-red/node_modules/node-red-contrib-ftp
sh deploy.sh
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...
todo...
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.
See license (Apache License Version 2.0).