Forgot to change the file_name to file_name_tmp when the destination folder is provided

master
gissehel 2013-04-19 20:59:28 +02:00
parent 4b0f0b2d27
commit 0332d91e13
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ class Mega(object):
input_file = requests.get(file_url, stream=True).raw input_file = requests.get(file_url, stream=True).raw
if dest_path: if dest_path:
output_file = open(dest_path + '/' + file_name, 'wb') output_file = open(dest_path + '/' + file_name_tmp, 'wb')
else: else:
output_file = open(file_name_tmp, 'wb') output_file = open(file_name_tmp, 'wb')