title: List all files in a remote server in Nodejs
body: <p>I'm using this script for listing all files in a server</p>
  
  <pre><code>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();
    });
  </code></pre>
  
  <p>How I can print all files of the directory?</p>