I'm using this script for listing all files in a server
var PromiseFtp = require('promise-ftp');
  var ftp = new PromiseFtp();
  ftp.connect({host: ipServer, user: user, password: password})
  .then(function (serverMessage) {
    return ftp.list('/directory/',false);
  }).then(function () {
    return ftp.end();
  });
How I can print all files of the directory?
 
     
     
    