Giter Site home page Giter Site logo

travisghansen / node-red-contrib-lftp Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 23 KB

A node-red node that supports FTP(s) and SFTP file transfer.

License: MIT License

HTML 40.35% JavaScript 59.65%
node-red nodered ftp ftps sftp lftp node-red-contrib node-red-project

node-red-contrib-lftp's Introduction

node-red-contrib-lftp

A node-red node that supports FTP(s) and SFTP file transfer. github

Install

You must have the lftp binary installed.

apt-get install -y lftp
apk add --no-cache lftp
yum install lftp
pacman -S lftp
etc
npm install --save node-red-contrib-lftp

Documentation

TODO

Security

Be aware of the security implications of running this node. Behind the scenes javascript is executing the lftp binary. The lftp binary can execute other processes on the host system indirectly. Only run this if you are sure of your environment and understand the implications.

Development

TODO

License

See license (MIT).

node-red-contrib-lftp's People

Contributors

dependabot[bot] avatar michielmag avatar travisghansen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

node-red-contrib-lftp's Issues

Error: spawn lftp ENOENT

Running Node-RED version: v0.20.5, Node.js version: v10.23.1, Linux 4.14.138 arm LE
This embedded so I don't have control over the versions.
Manually installed lftp and it's dependencies.
Getting Error: spawn lftp ENOENT on any command.

Support "site quota" or abitrary command execution

I have a ftp server where some stuff is automatically uploaded to.
I started to use node-red-contrib-lftp and it is working great so far.
Now I want to monitor if the ftp server is getting full.
The server I am using supports the "site quota" command.

ftp> site
(arguments to SITE command) quota
200 Available: 0 (0MiB) Limit: 30737596416 (29314MiB)
ftp> 221 Goodbye.

I was under the impression that I can just set msg.operation to "site quota", but apparently this does not work - only the already supported commands can be sent.

Two solutions come to my mind:

  1. Implement "site quota" as a native command.
  2. Implement a mechanism that allows it to pass-through arbitrary commands to the ftp server and feed back the result to node-red.

What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.