Comparing version 1.0.3 to 1.0.4
11
core.js
let path = require('path') | ||
let fs = require('fs') | ||
/** | ||
* [Core description] | ||
* @param {[type]} ftp [description] | ||
* @param {[type]} rootPath [description] | ||
*/ | ||
function Core(ftp, rootPath){ | ||
@@ -10,2 +15,8 @@ this.ftp = ftp | ||
// 获取文件夹内所有文件的路径 | ||
/** | ||
* [getDirList description] | ||
* @param {[type]} dir [description] | ||
* @param {Array} [arr=[]] [description] | ||
* @return {[type]} [description] | ||
*/ | ||
function getDirList(dir, arr = []){ | ||
@@ -12,0 +23,0 @@ let dirpath = path.resolve(dir) |
10
index.js
@@ -68,3 +68,6 @@ #!/usr/bin/env node | ||
lftp.put(localPath, remotePath) | ||
.then(msg => { console.log(msg); } ) | ||
.then(msg => { | ||
console.log(msg); | ||
process.exit() | ||
} ) | ||
}) | ||
@@ -79,3 +82,6 @@ }) | ||
lftp.put(localPath, remotePath) | ||
.then(msg => { console.log(msg); } ) | ||
.then(msg => { | ||
console.log(msg); | ||
process.exit() | ||
} ) | ||
}) | ||
@@ -82,0 +88,0 @@ }) |
{ | ||
"name": "lyftp", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "lyftp is ftp package, you can upload an entire folder or a file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7185
180