@xuda.io/drive_module 1.1.498 → 1.1.499
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 +5 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1866,12 +1866,6 @@ exports.get_drive_size = async function (req) {
|
|
|
1866
1866
|
ref = await _common.get_project_app_id(app_id, true);
|
|
1867
1867
|
}
|
|
1868
1868
|
|
|
1869
|
-
const directoryPath = path.join(
|
|
1870
|
-
_conf[`${drive_type}_drive_path`],
|
|
1871
|
-
ref,
|
|
1872
|
-
"/"
|
|
1873
|
-
);
|
|
1874
|
-
|
|
1875
1869
|
switch (drive_type) {
|
|
1876
1870
|
case "user":
|
|
1877
1871
|
break;
|
|
@@ -1879,6 +1873,11 @@ exports.get_drive_size = async function (req) {
|
|
|
1879
1873
|
break;
|
|
1880
1874
|
|
|
1881
1875
|
default:
|
|
1876
|
+
const directoryPath = path.join(
|
|
1877
|
+
_conf[`${drive_type}_drive_path`],
|
|
1878
|
+
ref,
|
|
1879
|
+
"/"
|
|
1880
|
+
);
|
|
1882
1881
|
size = await get_folder_size(directoryPath, drive_type, app_id);
|
|
1883
1882
|
break;
|
|
1884
1883
|
}
|