@xuda.io/drive_module 1.1.482 → 1.1.484

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -96,6 +96,7 @@ exports.get_drive_files = async function (req) {
96
96
  path: req.path || "/",
97
97
  name: file_doc.data.folder_name || "/",
98
98
  size: 0,
99
+ sizeInBytes: 0,
99
100
  children: [],
100
101
  };
101
102
 
@@ -199,7 +200,7 @@ exports.get_drive_files = async function (req) {
199
200
  drive_type,
200
201
  null
201
202
  );
202
-
203
+ files.size += sizeInBytes;
203
204
  files.children.push({
204
205
  sizeInBytes,
205
206
  size: formatBytes(sizeInBytes),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.482",
3
+ "version": "1.1.484",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {