mirror of
https://github.com/clearml/clearml
synced 2025-06-23 01:55:38 +00:00
Fix wrong path for downloading the content
This commit is contained in:
parent
074fa48cdd
commit
62946c04f1
@ -279,7 +279,7 @@ class StorageManager(object):
|
|||||||
remote_path = os.path.join(helper.base_url, path)
|
remote_path = os.path.join(helper.base_url, path)
|
||||||
if match_wildcard and not fnmatch.fnmatch(remote_path, match_wildcard):
|
if match_wildcard and not fnmatch.fnmatch(remote_path, match_wildcard):
|
||||||
continue
|
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:
|
if not os.path.exists(local_url) or os.path.getsize(local_url) == 0:
|
||||||
results.append(
|
results.append(
|
||||||
pool.apply_async(
|
pool.apply_async(
|
||||||
|
Loading…
Reference in New Issue
Block a user