Skip to content

Commit

Permalink
SNOW-686222: Remove os.path.realpath in storage_client.py (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jdu authored Nov 11, 2022
1 parent efde534 commit aa6c88f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/snowflake/connector/storage_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ def __init__(
)
# DOWNLOAD
self.full_dst_file_name: str | None = (
os.path.realpath(
os.path.join(
self.meta.local_location, os.path.basename(self.meta.dst_file_name)
)
os.path.join(
self.meta.local_location, os.path.basename(self.meta.dst_file_name)
)
if self.meta.local_location
else None
Expand Down Expand Up @@ -419,19 +417,19 @@ def _has_expired_presigned_url(self, response: requests.Response) -> bool:

# Override in GCS
def _update_presigned_url(self) -> None:
pass
return

# Override in S3
def _initiate_multipart_upload(self) -> None:
pass
return

# Override in S3
def _complete_multipart_upload(self) -> None:
pass
return

# Override in S3
def _abort_multipart_upload(self) -> None:
pass
return

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

0 comments on commit aa6c88f

Please sign in to comment.