From 9aecd37b8af5e779b4be8bfb3f3a810c33c6744b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Er=C5=BEen?= Date: Fri, 1 Sep 2017 09:02:36 +0200 Subject: [PATCH] Fix issue #45 This fixes an issue with unicode characters in the final path name. --- putiosync/download_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/putiosync/download_manager.py b/putiosync/download_manager.py index a4242da..ee653bc 100644 --- a/putiosync/download_manager.py +++ b/putiosync/download_manager.py @@ -96,7 +96,7 @@ def perform_download(self, token): dest = self.get_destination_directory() filename = self.get_filename() - final_path = os.path.join(dest, filename) + final_path = os.path.join(dest, filename).encode('utf-8') download_path = "{}.part".format(final_path) # ensure the path into which the download is going to be donwloaded exists. We know