utiller 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -390,6 +390,19 @@ var NodeUtiller = /*#__PURE__*/function (_Utiller) {
390
390
 
391
391
  this.appendInfo("\u8907\u88FD\u6210\u529F ".concat(from, "/* => ").concat(dest, "/* succeed"));
392
392
  }
393
+ /** remove all under dir */
394
+
395
+ }, {
396
+ key: "cleanAllFiles",
397
+ value: function cleanAllFiles(dir) {
398
+ if (this.isDirectory(dir)) {
399
+ this.appendInfo("\u6E96\u5099\u6E05\u9664\u5E95\u4E0B\u7684\u6240\u6709 ".concat(dir));
400
+
401
+ _fsExtra["default"].emptyDirSync(dir);
402
+
403
+ this.appendInfo("\u6210\u529F\u6E05\u9664\u5E95\u4E0B\u7684\u6240\u6709 ".concat(dir));
404
+ }
405
+ }
393
406
  /** 取得檔案的目錄, path => c://folderName/fileName.js to c://folderName */
394
407
 
395
408
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "configerer": "^1.0.6",
14
- "utiller": "^1.0.24",
14
+ "utiller": "^1.0.25",
15
15
  "databazer": "^1.0.2",
16
16
  "lodash": "^4.17.20",
17
17
  "moment": "^2.29.1"