@xuda.io/drive_module 1.1.1023 → 1.1.1024
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -347,8 +347,6 @@ exports.get_drive_files = async function (req) {
|
|
|
347
347
|
var values_to_delete = [];
|
|
348
348
|
|
|
349
349
|
for await (var val of node) {
|
|
350
|
-
const internal_path = val.path;
|
|
351
|
-
|
|
352
350
|
i++;
|
|
353
351
|
// filter by file type
|
|
354
352
|
if (type && type.toLowerCase() !== val.type.toLowerCase()) {
|
|
@@ -356,6 +354,8 @@ exports.get_drive_files = async function (req) {
|
|
|
356
354
|
continue;
|
|
357
355
|
}
|
|
358
356
|
|
|
357
|
+
const internal_path = val.path;
|
|
358
|
+
|
|
359
359
|
let ret = await db_module.get_app_couch_doc(
|
|
360
360
|
app_id_master,
|
|
361
361
|
path.join(
|
|
@@ -376,7 +376,7 @@ exports.get_drive_files = async function (req) {
|
|
|
376
376
|
if (val.type === "directory") {
|
|
377
377
|
val.name = ret.data.folder_name;
|
|
378
378
|
val.sizeInBytes = await get_folder_size(
|
|
379
|
-
|
|
379
|
+
internal_path,
|
|
380
380
|
drive_type,
|
|
381
381
|
app_id_master
|
|
382
382
|
);
|