From e14c2381e24176f7c071947ea45f62128e9e7c00 Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 12 Jul 2024 09:09:02 +0800 Subject: [PATCH] fix --- plugins/cloudassistant/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/cloudassistant/__init__.py b/plugins/cloudassistant/__init__.py index 528406a..3002215 100644 --- a/plugins/cloudassistant/__init__.py +++ b/plugins/cloudassistant/__init__.py @@ -436,8 +436,9 @@ class CloudAssistant(_PluginBase): if str(overwrite) == "false": if Path(mount_file).exists(): logger.info(f"云盘文件 {mount_file} 已存在且未开启覆盖,跳过上传") - Path(file_path).unlink() upload = False + if str(self._transfer_type) == "move": + Path(file_path).unlink() else: if Path(mount_file).exists(): logger.info(f"云盘文件 {mount_file} 已存在且开启覆盖,删除原云盘文件")