Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "xmcommon", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "javascript common lib for es6", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,3 +34,3 @@ # xmcommon | ||
## 0.1.5 - 0.1.6 | ||
## 0.1.5 - 0.1.7 | ||
- 2020-12-24 | ||
@@ -37,0 +37,0 @@ - \+ 增加fileExists判断文件或目录是否存在 |
@@ -372,3 +372,13 @@ // Type definitions for xmcommon 0.0 | ||
static fileExists(paramPath: string): boolean; | ||
/** | ||
* 原路径移动到新路径 | ||
* - 注:在windows下面,C盘或非同盘符的文件是改不了名的 | ||
* @param {String} paramOldFilename | ||
* @param {String} paramNewFilename | ||
* @return {{ret: boolean, errInfo: string}} 移动结果 | ||
* - ret = true 表示移动成功 | ||
* - ret = false 表示移动失败 | ||
* - errInfo 出错信息 | ||
*/ | ||
static renameFile(paramOldFilename: string, paramNewFilename: string): Promise<{ret: boolean, errInfo: string}>; | ||
/** | ||
@@ -375,0 +385,0 @@ * 创建目录 |
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
141152
4073