@xuda.io/drive_module 1.1.1025 → 1.1.1027

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 +3 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -360,12 +360,9 @@ exports.get_drive_files = async function (req) {
360
360
  app_id_master,
361
361
  val.relativePath
362
362
  );
363
- const file_path = "";
363
+ const file_path = path.join(directory_path, val.name);
364
364
 
365
- let ret = await db_module.get_app_couch_doc(
366
- app_id_master,
367
- path.join(directory_path, val.name)
368
- );
365
+ let ret = await db_module.get_app_couch_doc(app_id_master, file_path);
369
366
 
370
367
  if (ret.code > -1) {
371
368
  if (val.type === "file") {
@@ -393,7 +390,7 @@ exports.get_drive_files = async function (req) {
393
390
  } else {
394
391
  if (val.type === "directory") {
395
392
  val.sizeInBytes = await get_folder_size(
396
- val.path,
393
+ internal_path,
397
394
  drive_type,
398
395
  app_id_master
399
396
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1025",
3
+ "version": "1.1.1027",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {