Skip to content

Commit

Permalink
修复在 Linux 中上传到奶牛快传后文件夹错乱的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandaft committed Jul 20, 2022
1 parent 7c20eae commit 40db8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uploader/cowtransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 40db8ff

Please sign in to comment.