@xuda.io/drive_module 1.1.1021 → 1.1.1022

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/index.js +9 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -300,10 +300,15 @@ exports.get_drive_files = async function (req) {
300
300
 
301
301
  const app_id_master = await _common.get_project_app_id(app_id, true);
302
302
 
303
- var directoryPath =
304
- req.path !== "/"
305
- ? req.path || "/"
306
- : path.join(_conf.studio_drive_path, app_id_master);
303
+ var directoryPath = path.join(
304
+ _conf.studio_drive_path,
305
+ app_id_master,
306
+ req.path || "/"
307
+ );
308
+ // var directoryPath =
309
+ // req.path !== "/"
310
+ // ? req.path || "/"
311
+ // : path.join(_conf.studio_drive_path, app_id_master);
307
312
 
308
313
  const options = {
309
314
  stat: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1021",
3
+ "version": "1.1.1022",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {