diff --git a/minio/api.py b/minio/api.py index ce59b66e3..dabb76a2c 100644 --- a/minio/api.py +++ b/minio/api.py @@ -1047,9 +1047,7 @@ def fget_object(self, bucket_name, object_name, file_path, ) # Write to a temporary file "file_path.part.minio" before saving. - tmp_file_path = ( - tmp_file_path or file_path + "." + stat.etag + ".part.minio" - ) + tmp_file_path = tmp_file_path or f"{file_path}.{stat.etag}.part.minio" response = None try: