Skip to content

Commit aa6c88f

Browse files
authored
SNOW-686222: Remove os.path.realpath in storage_client.py (#1326)
1 parent efde534 commit aa6c88f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/snowflake/connector/storage_client.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ def __init__(
8989
)
9090
# DOWNLOAD
9191
self.full_dst_file_name: str | None = (
92-
os.path.realpath(
93-
os.path.join(
94-
self.meta.local_location, os.path.basename(self.meta.dst_file_name)
95-
)
92+
os.path.join(
93+
self.meta.local_location, os.path.basename(self.meta.dst_file_name)
9694
)
9795
if self.meta.local_location
9896
else None
@@ -419,19 +417,19 @@ def _has_expired_presigned_url(self, response: requests.Response) -> bool:
419417

420418
# Override in GCS
421419
def _update_presigned_url(self) -> None:
422-
pass
420+
return
423421

424422
# Override in S3
425423
def _initiate_multipart_upload(self) -> None:
426-
pass
424+
return
427425

428426
# Override in S3
429427
def _complete_multipart_upload(self) -> None:
430-
pass
428+
return
431429

432430
# Override in S3
433431
def _abort_multipart_upload(self) -> None:
434-
pass
432+
return
435433

436434
def delete_client_data(self) -> None:
437435
"""Deletes the tmp_dir and closes the source stream belonging to this client.

0 commit comments

Comments
 (0)