Comparing version 1.0.1 to 1.0.2
@@ -50,2 +50,5 @@ let path = require('path') | ||
list = list.map(item => { | ||
if(!item.startsWith(this.rootPath)) { | ||
throw new Error(`${item} 不在 ${this.rootPath} 文件夹下`) | ||
} | ||
return { | ||
@@ -52,0 +55,0 @@ relative: item.replace(this.rootPath, ''), |
{ | ||
"name": "lyftp", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "lyftp is ftp package, you can upload an entire folder or a file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,1 +32,4 @@ # lyftp | ||
upload | 上传文件配置,如上lyftp chat 会上传指定的两个文件/文件夹 | ||
## 规则 | ||
- 如果上传路径为空,则上传.ftprc下的所有文件 |
6688
163
35