@xuda.io/drive_module 1.1.703 → 1.1.705

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 +7 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -74,7 +74,7 @@ const fs = require("fs");
74
74
  });
75
75
  });
76
76
 
77
- const get_path = function (raw_path, ref, file_name) {
77
+ const get_studio_path = function (raw_path, ref, file_name) {
78
78
  return raw_path
79
79
  .replaceAll(path.join(_conf.studio_drive_path, ref), "")
80
80
  .replaceAll(file_name, "");
@@ -327,7 +327,11 @@ exports.get_drive_files = async function (req) {
327
327
  );
328
328
  }
329
329
 
330
- val.path = get_path(val.path, app_id_master, val.relativePath); //val.path
330
+ val.path = get_studio_path(
331
+ val.path,
332
+ app_id_master,
333
+ val.relativePath
334
+ ); //val.path
331
335
  // .replaceAll(path.join(_conf.studio_drive_path, app_id_master), "")
332
336
  // .replaceAll(val.relativePath, "");
333
337
 
@@ -374,7 +378,7 @@ exports.get_drive_files = async function (req) {
374
378
  children: [],
375
379
  name: tree?.name,
376
380
  size: 0,
377
- path: directoryPath,
381
+ path: get_studio_path(directoryPath, app_id_master, tree?.name || ""), // directoryPath,
378
382
  };
379
383
  }
380
384
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.703",
3
+ "version": "1.1.705",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {