@xuda.io/drive_module 1.1.1260 → 1.1.1262
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -677,7 +677,7 @@ export const create_drive_folder = async (req, job_id, headers) => {
|
|
|
677
677
|
file_path: doc.file_path,
|
|
678
678
|
type: doc.type,
|
|
679
679
|
};
|
|
680
|
-
|
|
680
|
+
|
|
681
681
|
const check_existing_file_ret = await check_drive_file(check_req);
|
|
682
682
|
|
|
683
683
|
if (check_existing_file_ret.code < 0) {
|
|
@@ -1220,7 +1220,7 @@ export const check_drive_file = async (req, job_id, headers, file_obj) => {
|
|
|
1220
1220
|
selector.originalname = path.basename(file_path);
|
|
1221
1221
|
}
|
|
1222
1222
|
if (type === 'directory') {
|
|
1223
|
-
selector.folder_name =
|
|
1223
|
+
selector.folder_name = file_path;
|
|
1224
1224
|
}
|
|
1225
1225
|
|
|
1226
1226
|
switch (drive_type) {
|