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

This commit is contained in:
gissehel 2013-04-19 20:59:28 +02:00
parent 4b0f0b2d27
commit 0332d91e13

View file

@ -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')