@xuda.io/drive_module 1.1.1021 → 1.1.1023
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 +11 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -300,10 +300,15 @@ exports.get_drive_files = async function (req) {
|
|
|
300
300
|
|
|
301
301
|
const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
302
302
|
|
|
303
|
-
var directoryPath =
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
303
|
+
var directoryPath = path.join(
|
|
304
|
+
_conf.studio_drive_path,
|
|
305
|
+
app_id_master,
|
|
306
|
+
req.path || "/"
|
|
307
|
+
);
|
|
308
|
+
// var directoryPath =
|
|
309
|
+
// req.path !== "/"
|
|
310
|
+
// ? req.path || "/"
|
|
311
|
+
// : path.join(_conf.studio_drive_path, app_id_master);
|
|
307
312
|
|
|
308
313
|
const options = {
|
|
309
314
|
stat: true,
|
|
@@ -342,6 +347,8 @@ exports.get_drive_files = async function (req) {
|
|
|
342
347
|
var values_to_delete = [];
|
|
343
348
|
|
|
344
349
|
for await (var val of node) {
|
|
350
|
+
const internal_path = val.path;
|
|
351
|
+
|
|
345
352
|
i++;
|
|
346
353
|
// filter by file type
|
|
347
354
|
if (type && type.toLowerCase() !== val.type.toLowerCase()) {
|