@xuda.io/drive_module 1.1.722 → 1.1.724

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 +2 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -353,14 +353,10 @@ exports.get_drive_files = async function (req) {
353
353
  }
354
354
  val.date_created = new Date(val.stat.birthtime).valueOf();
355
355
  delete val.stat;
356
- // if (val.children) {
357
- // await drill(val.children);
358
- // }
359
- // if (val.type === "file") {
356
+
360
357
  val.path = get_studio_path(val.path, app_id_master, val.relativePath);
361
358
  val.file_path = path.join(val.path, val.name);
362
359
  val.tags = ret?.data?.tags || [];
363
- // }
364
360
  }
365
361
  for await (var index of values_to_delete.reverse()) {
366
362
  node.splice(index, 1);
@@ -1657,7 +1653,7 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1657
1653
  switch (drive_type) {
1658
1654
  case "studio": {
1659
1655
  const target_dir = path.join(_conf[`studio_drive_path`], master_app_id);
1660
- // file_name = path.join(file_path.replace(target_dir, ""), originalname);
1656
+
1661
1657
  target_file = path.join(
1662
1658
  file_path !== "/" ? file_path : target_dir,
1663
1659
  file_name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.722",
3
+ "version": "1.1.724",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {