@xuda.io/drive_module 1.1.1269 → 1.1.1271

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.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1688,7 +1688,8 @@ const get_drive_doc = async (type, drive_type, app_id, uid, file_path, headers)
1688
1688
  app_id,
1689
1689
  uid,
1690
1690
  drive_type,
1691
- file_path,
1691
+ file_path: type === 'file' ? file_path : path.dirname(file_path),
1692
+ folder_name: type === 'directory' ? path.basename(file_path) : '',
1692
1693
  type,
1693
1694
  };
1694
1695
  const check_existing_file_ret = await check_drive_file(check_req);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1269",
3
+ "version": "1.1.1271",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {