@xuda.io/drive_module 1.1.495 → 1.1.496
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 +9 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1793,10 +1793,7 @@ exports.search_drive_files = async function (req) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
1795
|
case "studio": {
|
|
1796
|
-
const directoryPath = path.join(
|
|
1797
|
-
_conf[`${drive_type}_drive_path`],
|
|
1798
|
-
app_id
|
|
1799
|
-
);
|
|
1796
|
+
const directoryPath = path.join(_conf[`studio_drive_path`], app_id);
|
|
1800
1797
|
|
|
1801
1798
|
const options = {
|
|
1802
1799
|
stat: false,
|
|
@@ -1875,6 +1872,14 @@ exports.get_drive_size = async function (req) {
|
|
|
1875
1872
|
"/"
|
|
1876
1873
|
);
|
|
1877
1874
|
|
|
1875
|
+
switch (drive_type) {
|
|
1876
|
+
case "user":
|
|
1877
|
+
break;
|
|
1878
|
+
|
|
1879
|
+
default:
|
|
1880
|
+
break;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1878
1883
|
const size = await get_folder_size(directoryPath, drive_type, app_id);
|
|
1879
1884
|
|
|
1880
1885
|
return { code: 200, data: size };
|