Skip to content

Commit

Permalink
Fix logic in processing cloud path (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahakiann authored Jan 28, 2025
1 parent 9cba2a5 commit 0009c13
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 0009c13

Please # to comment.