@xuda.io/drive_module 1.1.703 → 1.1.704
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 +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -74,7 +74,7 @@ const fs = require("fs");
|
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
const
|
|
77
|
+
const get_studio_path = function (raw_path, ref, file_name) {
|
|
78
78
|
return raw_path
|
|
79
79
|
.replaceAll(path.join(_conf.studio_drive_path, ref), "")
|
|
80
80
|
.replaceAll(file_name, "");
|
|
@@ -327,7 +327,11 @@ exports.get_drive_files = async function (req) {
|
|
|
327
327
|
);
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
val.path =
|
|
330
|
+
val.path = get_studio_path(
|
|
331
|
+
val.path,
|
|
332
|
+
app_id_master,
|
|
333
|
+
val.relativePath
|
|
334
|
+
); //val.path
|
|
331
335
|
// .replaceAll(path.join(_conf.studio_drive_path, app_id_master), "")
|
|
332
336
|
// .replaceAll(val.relativePath, "");
|
|
333
337
|
|