From b2f5c8085d61fd39b35f683db734be875c2815fc Mon Sep 17 00:00:00 2001 From: dahai9 <71111427+dahai9@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:28:52 +0800 Subject: [PATCH] Update cloud_drive.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复aligo空格转译问题 --- module/cloud_drive.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/cloud_drive.py b/module/cloud_drive.py index 3d321807..8a35138e 100644 --- a/module/cloud_drive.py +++ b/module/cloud_drive.py @@ -152,6 +152,11 @@ def aligo_upload_file( + os.path.dirname(local_file_path).replace(save_path, "") + "/" ).replace("\\", "/") + + """ + avoid space error + """ + remote_dir = remote_dir.replace(" ", "\ ") if not drive_config.dir_cache.get(remote_dir): CloudDrive.aligo_mkdir(drive_config, remote_dir) aligo_dir = drive_config.aligo.get_folder_by_path(remote_dir)