@xuda.io/drive_module 1.1.501 → 1.1.502
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
|
@@ -2024,10 +2024,10 @@ const get_folder_size = async function (dir, drive_type, app_id) {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
};
|
|
2026
2026
|
|
|
2027
|
-
if (
|
|
2028
|
-
await calculateSizeFs(dir);
|
|
2029
|
-
} else {
|
|
2027
|
+
if (["user", "workspace.includes"].includes(drive_type)) {
|
|
2030
2028
|
await calculateSizeDocs(dir);
|
|
2029
|
+
} else {
|
|
2030
|
+
await calculateSizeFs(dir);
|
|
2031
2031
|
}
|
|
2032
2032
|
return totalSize;
|
|
2033
2033
|
};
|