From e9663499a2a22ca70178f38948a011c8d1d9a4e7 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Wed, 12 Aug 2026 20:21:32 +0800 Subject: [PATCH] fix a crash where os.sep is different from the slash in final_path --- Whatsapp_Chat_Exporter/ios_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/ios_handler.py b/Whatsapp_Chat_Exporter/ios_handler.py index 9f46aba..eeec1ed 100644 --- a/Whatsapp_Chat_Exporter/ios_handler.py +++ b/Whatsapp_Chat_Exporter/ios_handler.py @@ -506,7 +506,7 @@ def process_media_item(content, data, media_folder, mime, separate_media, fix_do ) else: final_path = file_path - message.data = os.path.join(*final_path.split(os.sep)[1:]) + message.data = os.path.join(*Path(final_path).parts[1:]) else: # Handle missing media message.data = "The media is missing"