@xuda.io/drive_module 1.1.1345 → 1.1.1347
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 +1 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -242,7 +242,7 @@ export const get_drive_files = async (req) => {
|
|
|
242
242
|
size: formatBytes(sizeInBytes),
|
|
243
243
|
name: doc.folder_name,
|
|
244
244
|
path: doc.file_path, //'/' + doc._id,
|
|
245
|
-
file_path: doc.file_path
|
|
245
|
+
file_path: path.join(doc.file_path, doc.folder_name), //'/' + doc._id,
|
|
246
246
|
type: doc.type,
|
|
247
247
|
is_folder: true,
|
|
248
248
|
date_created: doc.date_created,
|
|
@@ -1696,7 +1696,6 @@ const get_file_info = async (file_path) => {
|
|
|
1696
1696
|
};
|
|
1697
1697
|
|
|
1698
1698
|
export const delete_file_from_bucket = async (bucket) => {
|
|
1699
|
-
debugger;
|
|
1700
1699
|
const s3 = new S3Client({
|
|
1701
1700
|
endpoint: _conf.storage_bucket[process.env.XUDA_HOSTNAME].endpoint,
|
|
1702
1701
|
region: _conf.storage_bucket[process.env.XUDA_HOSTNAME].region,
|