diff --git a/uploader/cowtransfer.py b/uploader/cowtransfer.py index d7cfc64..42e411e 100644 --- a/uploader/cowtransfer.py +++ b/uploader/cowtransfer.py @@ -281,7 +281,7 @@ def get_folder_id(parent_path: str, local_data: list, remote_data: list): # 绑定文件夹ID for folder_path, folder_id in folder_id_dict.items(): for file_id, file_info in self.file_dict.items(): - if folder_path.replace(f"\\{self.folder_name}", "") in file_info["abs_path"]: + if folder_path.replace(f"\\{self.folder_name}", "") in file_info["abs_path"].replace("/", "\\"): self.file_dict[file_id]["folder_id"] = folder_id except Exception as exc: