@xuda.io/drive_module 1.1.721 → 1.1.723
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 +1 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -341,7 +341,6 @@ exports.get_drive_files = async function (req) {
|
|
|
341
341
|
delete ret.data.docType;
|
|
342
342
|
delete ret.data.stat;
|
|
343
343
|
} else {
|
|
344
|
-
// if (drive_type === "studio") {
|
|
345
344
|
if (val.type === "directory") {
|
|
346
345
|
val.sizeInBytes = await get_folder_size(
|
|
347
346
|
val.path,
|
|
@@ -351,20 +350,13 @@ exports.get_drive_files = async function (req) {
|
|
|
351
350
|
}
|
|
352
351
|
// supports file uploaded directly to the server
|
|
353
352
|
val.access_link = await rep(val.path, "studio"); //+ "?r=" + Date.now();
|
|
354
|
-
// } else {
|
|
355
|
-
// values_to_delete.push(i);
|
|
356
|
-
// }
|
|
357
353
|
}
|
|
358
354
|
val.date_created = new Date(val.stat.birthtime).valueOf();
|
|
359
355
|
delete val.stat;
|
|
360
|
-
|
|
361
|
-
// await drill(val.children);
|
|
362
|
-
// }
|
|
363
|
-
// if (val.type === "file") {
|
|
356
|
+
|
|
364
357
|
val.path = get_studio_path(val.path, app_id_master, val.relativePath);
|
|
365
358
|
val.file_path = path.join(val.path, val.name);
|
|
366
359
|
val.tags = ret?.data?.tags || [];
|
|
367
|
-
// }
|
|
368
360
|
}
|
|
369
361
|
for await (var index of values_to_delete.reverse()) {
|
|
370
362
|
node.splice(index, 1);
|