Open c-y-q opened 5 years ago
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({ host: "189.19", port: "300", user: "re", password: "+" });
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({ host: "189.19", port: "300", user: "re", password: "+" });![image](https://user-images.githubusercontent.com/24750024/60315840-db040d80-999a-11e9-949a-bdd7bbe88d80.png)