mirror of
https://github.com/clearml/clearml
synced 2025-03-04 02:57:24 +00:00
skip adding scheme to the path if the scheme is already provided
This commit is contained in:
parent
512aa08264
commit
68cb486dda
@ -3071,7 +3071,7 @@ class StorageHelper(object):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def sanitize_url(cls, remote_url):
|
def sanitize_url(cls, remote_url):
|
||||||
base_url = cls._resolve_base_url(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
|
return remote_url
|
||||||
absoulte_path = os.path.abspath(remote_url)
|
absoulte_path = os.path.abspath(remote_url)
|
||||||
return base_url + absoulte_path
|
return base_url + absoulte_path
|
||||||
|
Loading…
Reference in New Issue
Block a user