@xuda.io/drive_module 1.1.1285 → 1.1.1286
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.
- package/index.mjs +7 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -693,15 +693,15 @@ export const create_drive_folder = async (req, job_id, headers) => {
|
|
|
693
693
|
case 'studio': {
|
|
694
694
|
folder_id = req.folder_name;
|
|
695
695
|
const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
696
|
-
if (!file_path.includes(app_id_master)) {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
}
|
|
696
|
+
// if (!file_path.includes(app_id_master)) {
|
|
697
|
+
// return {
|
|
698
|
+
// code: -1,
|
|
699
|
+
// data: 'error - file path unauthorized',
|
|
700
|
+
// };
|
|
701
|
+
// }
|
|
702
702
|
|
|
703
703
|
target_dir = path.join(file_path, folder_id);
|
|
704
|
-
|
|
704
|
+
const fs_target_dir = path.join(_conf[`studio_drive_path`], master_app_id, target_dir);
|
|
705
705
|
folder_exist = await file_exists(target_dir);
|
|
706
706
|
if (folder_exist) {
|
|
707
707
|
throw new Error('folder exist');
|