Forgot to change the file_name to file_name_tmp when the destination folder is provided
This commit is contained in:
parent
4b0f0b2d27
commit
0332d91e13
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue