@xuda.io/drive_module 1.1.457 → 1.1.459
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
|
@@ -2203,7 +2203,7 @@ const get_folder_size = async function (dir, drive_type, app_id) {
|
|
|
2203
2203
|
: await db_module.find_app_couch_query(app_id, opt);
|
|
2204
2204
|
for await (let doc of ret.docs) {
|
|
2205
2205
|
if (doc.type === "directory") {
|
|
2206
|
-
await calculateSizeDocs(path.join(doc._id));
|
|
2206
|
+
await calculateSizeDocs(path.join("/", doc._id));
|
|
2207
2207
|
} else {
|
|
2208
2208
|
totalSize += doc.size;
|
|
2209
2209
|
}
|
|
@@ -2262,7 +2262,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
|
|
|
2262
2262
|
selector: {
|
|
2263
2263
|
docType: `${drive_type}_drive`,
|
|
2264
2264
|
stat: 3,
|
|
2265
|
-
|
|
2265
|
+
|
|
2266
2266
|
file_path: dirPath,
|
|
2267
2267
|
},
|
|
2268
2268
|
limit: 99999,
|
|
@@ -2273,7 +2273,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
|
|
|
2273
2273
|
: await db_module.find_app_couch_query(app_id, opt);
|
|
2274
2274
|
for await (let doc of ret.docs) {
|
|
2275
2275
|
if (doc.type === "directory") {
|
|
2276
|
-
await get_docs(doc.
|
|
2276
|
+
await get_docs(path.join("/", doc._id));
|
|
2277
2277
|
} else {
|
|
2278
2278
|
docs.push(doc);
|
|
2279
2279
|
}
|