Merge pull request #23 from gissehel/tempofilename_typo

Forgot to change the file_name to file_name_tmp when the destination folder is provided
This commit is contained in:
Richard O'Dwyer 2013-04-19 12:01:39 -07:00
commit ef47228add

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