Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

FTP Get a directory listing of the current

var Client = require('ftp');
 
  var c = new Client();
  c.on('ready', function() {
    c.list(function(err, list) {
      if (err) throw err;
      console.dir(list);
      c.end();
    });
  });
  // connect to localhost:21 as anonymous
  c.connect();
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #FTP #Get #directory #listing #current
ADD COMMENT
Topic
Name
5+2 =