From 62946c04f1b0c5343392d2509059502b1a3813cd Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 12 Aug 2021 13:19:56 +0300 Subject: [PATCH] Fix wrong path for downloading the content --- clearml/storage/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/storage/manager.py b/clearml/storage/manager.py index 0796a427..22c46174 100644 --- a/clearml/storage/manager.py +++ b/clearml/storage/manager.py @@ -279,7 +279,7 @@ class StorageManager(object): remote_path = os.path.join(helper.base_url, path) if match_wildcard and not fnmatch.fnmatch(remote_path, match_wildcard): continue - local_url = remote_path.replace(remote_url, local_folder) + local_url = os.path.join(local_folder, remote_path[len(remote_url):].lstrip(os.path.sep)) if not os.path.exists(local_url) or os.path.getsize(local_url) == 0: results.append( pool.apply_async(