var Client = require('ftp');
var c = new Client();
c.on('ready', function() {
c.list(function(err, list) {
if (err) throw err;
console.dir(list.length);
c.end();
});
});
// connect to localhost:21 as anonymous
var option={host:"192.168.8.3","port":21,"user":"test","password":"123456"}
c.connect(option);
NodeJs FTP
最新推荐文章于 2024-09-13 22:37:42 发布