From 2b609464fda3150406e238b9c45e763ddb3f45d6 Mon Sep 17 00:00:00 2001 From: Vignesh D Date: Wed, 18 Sep 2024 20:55:57 +0530 Subject: [PATCH] skip adding scheme to the path if the scheme is already provided --- clearml/storage/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/storage/helper.py b/clearml/storage/helper.py index 8d10669c..0877cf79 100644 --- a/clearml/storage/helper.py +++ b/clearml/storage/helper.py @@ -3071,7 +3071,7 @@ class StorageHelper(object): @classmethod def sanitize_url(cls, remote_url): base_url = cls._resolve_base_url(remote_url) - if base_url != 'file://': + if base_url != 'file://' or remote_url.startswith("file://"): return remote_url absoulte_path = os.path.abspath(remote_url) return base_url + absoulte_path