@xuda.io/drive_module 1.1.522 → 1.1.523
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 +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1904,6 +1904,10 @@ exports.get_drive_size = async function (req) {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
1906
|
size = await get_folder_size(directoryPath, drive_type, app_id_master, uid);
|
|
1907
|
+
if (drive_type === "workspace") {
|
|
1908
|
+
// calc datacenter
|
|
1909
|
+
size += await get_folder_size(directoryPath, drive_type, app_id);
|
|
1910
|
+
}
|
|
1907
1911
|
|
|
1908
1912
|
return { code: 200, data: size };
|
|
1909
1913
|
} catch (err) {
|