@xuda.io/drive_module 1.1.812 → 1.1.813

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 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1780,7 +1780,7 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1780
1780
  case "studio": {
1781
1781
  const target_dir = path.join(_conf[`studio_drive_path`], master_app_id);
1782
1782
 
1783
- target_file = path.join(target_dir, file_name);
1783
+ target_file = path.join(target_dir, file_path);
1784
1784
 
1785
1785
  if (await fs_module.file_exists(target_file)) {
1786
1786
  return {
@@ -1797,8 +1797,8 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1797
1797
  {
1798
1798
  selector: {
1799
1799
  docType: "workspace_drive",
1800
- originalname: file_name,
1801
- file_path,
1800
+ originalname: path.basename(file_path),
1801
+ file_path:path.dirname(file_path);,
1802
1802
  stat: 3,
1803
1803
  },
1804
1804
  limit: 99,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.812",
3
+ "version": "1.1.813",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {