Hello i downloaded this npm module to connect to my ftp : node-ftps
connection class
var FTPS = require(\'ftps\');
var ftps = new F
I have recently tried node-ftp
and found that is has issues connecting to some newer servers. Particularly I had no ability to connect to a server version SSH-2.0-1.82_sshlib Globalscape
ssh2-sftp-client
worked for me. Pass a debug:yourDebugFunction
parameter in the connect options for good debugging output.
https://www.npmjs.com/package/ssh2-sftp-client
let sftp = new Client();
sftp.connect({
host: '127.0.0.1',
port: '8080',
username: 'username',
password: '******'
}).then(() => {
return sftp.list('/pathname');
}).then(data => {
console.log(data, 'the data info');
}).catch(err => {
console.log(err, 'catch error');
});```