@xuda.io/drive_module 1.1.643 → 1.1.644
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 +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -634,6 +634,10 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
634
634
|
check_req
|
|
635
635
|
);
|
|
636
636
|
|
|
637
|
+
if (check_existing_file_ret.code > -1) {
|
|
638
|
+
return { code: -5, data: "file not exit" };
|
|
639
|
+
}
|
|
640
|
+
|
|
637
641
|
var target_file = path.join(file_path, file_name);
|
|
638
642
|
const master_id = await _common.get_project_app_id(app_id, true);
|
|
639
643
|
const tempPath = file_obj.path;
|