@xuda.io/drive_module 1.1.1282 → 1.1.1283

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 +3 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -700,6 +700,9 @@ export const create_drive_folder = async (req, job_id, headers) => {
700
700
  };
701
701
  }
702
702
  target_dir = file_path + '/' + folder_id;
703
+ if (check_req.type === 'directory') {
704
+ target_dir = path.join(file_path, folder_id);
705
+ }
703
706
  folder_exist = await file_exists(target_dir);
704
707
  if (folder_exist) {
705
708
  throw new Error('folder exist');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1282",
3
+ "version": "1.1.1283",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {