Fix wrong path for downloading the content

This commit is contained in:
allegroai 2021-08-12 13:19:56 +03:00
parent 074fa48cdd
commit 62946c04f1

View File

@ -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(