Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //manifest.json
- {
- "name": "MyBca Chrome Apps",
- "description": "MyBCA Chrome Apps",
- "version": "1",
- "manifest_version": 2,
- "app": {
- "background": {
- "scripts": ["background.js"]
- }
- },
- "sockets": {
- "udp": {
- "send": "*"
- },
- "tcp": {
- "connect": "localhost:21"
- },
- "tcpServer": {
- "listen": "127.0.0.1:8080"
- }
- },
- "permissions":["storage", "webview"]
- }
- //jsftp
- var ftp = new JSFtp({
- host: "127.0.0.1",
- port: 21, // defaults to 21
- user: "bca", // defaults to "anonymous"
- pass: "admin" // defaults to "@anonymous"
- });
- ftp.ls(".", function(err, res) {
- res.forEach(function(file) {
- console.log(file.name);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement