From 0332d91e1367897f43c46f066481d6c15cc5e18d Mon Sep 17 00:00:00 2001 From: gissehel Date: Fri, 19 Apr 2013 20:59:28 +0200 Subject: [PATCH] Forgot to change the file_name to file_name_tmp when the destination folder is provided --- mega/mega.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mega/mega.py b/mega/mega.py index a3f7f04..3a92d24 100644 --- a/mega/mega.py +++ b/mega/mega.py @@ -412,7 +412,7 @@ class Mega(object): input_file = requests.get(file_url, stream=True).raw if dest_path: - output_file = open(dest_path + '/' + file_name, 'wb') + output_file = open(dest_path + '/' + file_name_tmp, 'wb') else: output_file = open(file_name_tmp, 'wb')