Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //manifest.json
  2. {
  3.   "name": "MyBca Chrome Apps",
  4.   "description": "MyBCA Chrome Apps",
  5.   "version": "1",
  6.   "manifest_version": 2,
  7.   "app": {
  8.     "background": {
  9.       "scripts": ["background.js"]
  10.     }
  11.   },
  12.   "sockets": {
  13.     "udp": {
  14.       "send": "*"
  15.     },
  16.     "tcp": {
  17.       "connect": "localhost:21"
  18.     },
  19.     "tcpServer": {
  20.       "listen": "127.0.0.1:8080"
  21.     }
  22.   },
  23.   "permissions":["storage", "webview"]
  24. }
  25.  
  26. //jsftp
  27. var ftp = new JSFtp({
  28.   host: "127.0.0.1",
  29.   port: 21, // defaults to 21
  30.   user: "bca", // defaults to "anonymous"
  31.   pass: "admin" // defaults to "@anonymous"
  32. });
  33.  
  34. ftp.ls(".", function(err, res) {
  35.   res.forEach(function(file) {
  36.     console.log(file.name);
  37.   });
  38. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement