@xuda.io/drive_module 1.1.1028 → 1.1.1030
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.js +12 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -398,8 +398,8 @@ exports.get_drive_files = async function (req) {
|
|
|
398
398
|
val.date_created = new Date(val.stat.birthtime).valueOf();
|
|
399
399
|
delete val.stat;
|
|
400
400
|
|
|
401
|
-
val.path = get_studio_path(val.path, app_id_master, val.relativePath);
|
|
402
|
-
val.file_path = path.join(val.path, val.name);
|
|
401
|
+
val.path = directory_path; // get_studio_path(val.path, app_id_master, val.relativePath);
|
|
402
|
+
val.file_path = file_path; // path.join(val.path, val.name);
|
|
403
403
|
val.tags = ret?.data?.tags || [];
|
|
404
404
|
}
|
|
405
405
|
for await (var index of values_to_delete.reverse()) {
|
|
@@ -414,6 +414,16 @@ exports.get_drive_files = async function (req) {
|
|
|
414
414
|
.slice(from, to + 1);
|
|
415
415
|
}
|
|
416
416
|
await drill(tree.children);
|
|
417
|
+
tree.path = get_studio_path(
|
|
418
|
+
directoryPath,
|
|
419
|
+
app_id_master,
|
|
420
|
+
tree?.name || ""
|
|
421
|
+
);
|
|
422
|
+
tree.file_path = get_studio_path(
|
|
423
|
+
directoryPath,
|
|
424
|
+
app_id_master,
|
|
425
|
+
tree?.name || ""
|
|
426
|
+
);
|
|
417
427
|
} else {
|
|
418
428
|
tree = {
|
|
419
429
|
children: [],
|