From e8fa882f0ecd1e12ae09979cc355280d2e65217c Mon Sep 17 00:00:00 2001 From: Nareh Sahakian Date: Tue, 28 Jan 2025 16:35:54 -0500 Subject: [PATCH] Fix logic in processing cloud path --- python/utils/gcp_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/utils/gcp_utils.py b/python/utils/gcp_utils.py index 5d1fce6..51c538a 100644 --- a/python/utils/gcp_utils.py +++ b/python/utils/gcp_utils.py @@ -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 = {