mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Refactor (readability)
This commit is contained in:
parent
753b3ff68c
commit
820fa6ac7a
@ -41,10 +41,11 @@ class StorageManager(object):
|
||||
cached_file = CacheManager.get_cache_manager(
|
||||
cache_context=cache_context
|
||||
).get_local_copy(remote_url=remote_url, force_download=force_download)
|
||||
if not extract_archive or not cached_file:
|
||||
return cached_file
|
||||
if extract_archive and cached_file:
|
||||
return cls._extract_to_cache(cached_file, name)
|
||||
|
||||
return cached_file
|
||||
|
||||
@classmethod
|
||||
def upload_file(
|
||||
cls, local_file, remote_url, wait_for_upload=True
|
||||
|
Loading…
Reference in New Issue
Block a user