From 5890142dc8780c8a8ef800ab49d8f4a327640f96 Mon Sep 17 00:00:00 2001 From: Satabrata Paul Date: Fri, 21 Nov 2025 16:43:05 +0530 Subject: [PATCH] use: lstrip() instead of strip() --- application_sdk/activities/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application_sdk/activities/common/utils.py b/application_sdk/activities/common/utils.py index 163febf6a..ba12137a3 100644 --- a/application_sdk/activities/common/utils.py +++ b/application_sdk/activities/common/utils.py @@ -116,11 +116,11 @@ def get_object_store_prefix(path: str) -> str: return relative_path.replace(os.path.sep, "/") else: # Path is already a relative object store path, return as-is - return path.strip("/") + return path.lstrip("/") except ValueError: # os.path.commonpath or os.path.relpath can raise ValueError on Windows with different drives # In this case, treat as user-provided path, return as-is - return path.strip("/") + return path.lstrip("/") def auto_heartbeater(fn: F) -> F: