Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var JSFtp = require("jsftp");
- var ftp = new JSFtp({
- host: "localhost",
- port: 21, // defaults to 21
- user: "bca", // defaults to "anonymous"
- pass: "admin", // defaults to "@anonymous",
- debugMode: true
- });
- ftp.ls(".", function(err, res) {
- res.forEach(function(file) {
- console.log(file.name);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement