pinokiod 0.1.55 → 0.1.56

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.
@@ -1,6 +1,7 @@
1
1
  const path = require('path')
2
2
  //const decompress = require('decompress');
3
3
  const fs = require("fs")
4
+ const fse = require('fs-extra')
4
5
  const Pdrive = require('pdrive')
5
6
  const { DownloaderHelper } = require('node-downloader-helper');
6
7
  const symlinkDir = require('symlink-dir')
@@ -118,7 +119,8 @@ class FS {
118
119
  async rm(req, ondata, kernel) {
119
120
  let cwd = (req.cwd ? req.cwd : kernel.api.userdir)
120
121
  let filepath = path.resolve(cwd, req.params.path)
121
- await fs.promises.rm(filepath)
122
+ // await fs.promises.rm(filepath)
123
+ await fse.remove(filepath)
122
124
  }
123
125
  async copy(req, ondata, kernel) {
124
126
  let cwd = (req.cwd ? req.cwd : kernel.api.userdir)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {