Advertisement
Guest User

Untitled

a guest
Sep 9th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var JSFtp = require("jsftp");
  2.  
  3. var ftp = new JSFtp({
  4.   host: "localhost",
  5.   port: 21, // defaults to 21
  6.   user: "bca", // defaults to "anonymous"
  7.   pass: "admin", // defaults to "@anonymous",
  8.   debugMode: true
  9. });
  10.  
  11. ftp.ls(".", function(err, res) {
  12.   res.forEach(function(file) {
  13.     console.log(file.name);
  14.   });
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement