@xuda.io/drive_module 1.1.1002 → 1.1.1003
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -815,7 +815,12 @@ exports.delete_drive_files = async function (req, job_id, headers) {
|
|
|
815
815
|
case "studio": {
|
|
816
816
|
debugger;
|
|
817
817
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
818
|
-
const
|
|
818
|
+
const target_dir = path.join(
|
|
819
|
+
_conf[`studio_drive_path`],
|
|
820
|
+
app_id_reference,
|
|
821
|
+
ile.file_path
|
|
822
|
+
);
|
|
823
|
+
const ret = rimraf.sync(target_dir); // delete the file
|
|
819
824
|
|
|
820
825
|
if (doc.type === "file") {
|
|
821
826
|
doc.ts = Date.now();
|