Closed jeromew closed 7 years ago
Here is a PR that adds the execAsStream feature as per #38
I don't really see how to test it programmatically since we would need a stable ftp server.
I use it
find
cat
Up to now it has behaved as expected (both for the success case and the error case triggering and 'error' event)
var stream = (new lftp(config)).raw('find').execAsStream(); stream.pipe(process.stdout);
Thank you a lot @jeromew 👏
It's now available on npm with the version 0.6.0
0.6.0
Here is a PR that adds the execAsStream feature as per #38
I don't really see how to test it programmatically since we would need a stable ftp server.
I use it
find
command to get a deep ls of a ftp server rootcat
command to stream-pipe the content of a remote binary fileUp to now it has behaved as expected (both for the success case and the error case triggering and 'error' event)
var stream = (new lftp(config)).raw('find').execAsStream(); stream.pipe(process.stdout);