diff --git a/src/mega/mega.py b/src/mega/mega.py index 906b0db..5748a61 100644 --- a/src/mega/mega.py +++ b/src/mega/mega.py @@ -742,6 +742,7 @@ def _download_file(self, file_mac[2] ^ file_mac[3]) != meta_mac: raise ValueError('Mismatched mac') output_path = Path(dest_path + file_name) + temp_output_file.close() shutil.move(temp_output_file.name, output_path) return output_path