jj.js 0.7.2 → 0.7.3

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.
Files changed (2) hide show
  1. package/lib/upload.js +1 -1
  2. package/package.json +1 -1
package/lib/upload.js CHANGED
@@ -37,7 +37,7 @@ class Upload extends Context
37
37
 
38
38
  try {
39
39
  const filePath = pt.join(this.$config.app.base_dir, dir, savename);
40
- await utils.fs.mkdirs(filePath);
40
+ await utils.fs.mkdirs(pt.dirname(filePath));
41
41
  const reader = fs.createReadStream(this._file.path);
42
42
  const writer = fs.createWriteStream(filePath);
43
43
  reader.pipe(writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jj.js",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "A simple and lightweight MVC framework built on nodejs+koa2",
5
5
  "main": "jj.js",
6
6
  "scripts": {