@xuda.io/drive_module 1.1.1270 → 1.1.1272
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.mjs +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -231,6 +231,7 @@ export const get_drive_files = async (req) => {
|
|
|
231
231
|
}
|
|
232
232
|
if (doc.type === 'directory') {
|
|
233
233
|
try {
|
|
234
|
+
debugger;
|
|
234
235
|
const sizeInBytes = await get_folder_size(file_path, drive_type, app_id_reference, uid);
|
|
235
236
|
files.sizeInBytes += sizeInBytes;
|
|
236
237
|
files.children.push({
|
|
@@ -1688,7 +1689,8 @@ const get_drive_doc = async (type, drive_type, app_id, uid, file_path, headers)
|
|
|
1688
1689
|
app_id,
|
|
1689
1690
|
uid,
|
|
1690
1691
|
drive_type,
|
|
1691
|
-
file_path: type === 'file' ? file_path :
|
|
1692
|
+
file_path: type === 'file' ? file_path : path.dirname(file_path),
|
|
1693
|
+
folder_name: type === 'directory' ? path.basename(file_path) : '',
|
|
1692
1694
|
type,
|
|
1693
1695
|
};
|
|
1694
1696
|
const check_existing_file_ret = await check_drive_file(check_req);
|