Skip to content

Commit

Permalink
Fix logic in processing cloud path
Browse files Browse the repository at this point in the history
  • Loading branch information
sahakiann committed Jan 28, 2025
1 parent 9cba2a5 commit e8fa882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/utils/gcp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _process_cloud_path(cloud_path: str) -> dict:
Returns:
dict: A dictionary containing the platform prefix, bucket name, and blob URL.
"""
platform_prefix, remaining_url = str.split(str(cloud_path), sep="//")
platform_prefix, remaining_url = str.split(str(cloud_path), sep="//", maxsplit=1)
bucket_name = str.split(remaining_url, sep="/")[0]
blob_name = "/".join(str.split(remaining_url, sep="/")[1:])
path_components = {
Expand Down

0 comments on commit e8fa882

Please # to comment.