From 44d9a03e5690baa85e09e240dc510c5244156167 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Fri, 30 Oct 2020 09:51:45 +0200 Subject: [PATCH] Change arguments order to preserve backwards compatibility for positional arguments --- trains/storage/manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trains/storage/manager.py b/trains/storage/manager.py index 1ec62dca..ebfdd93e 100644 --- a/trains/storage/manager.py +++ b/trains/storage/manager.py @@ -21,9 +21,9 @@ class StorageManager(object): @classmethod def get_local_copy( - cls, remote_url, force_download=False, cache_context=None, extract_archive=True, name=None + cls, remote_url, cache_context=None, extract_archive=True, name=None, force_download=False, ): - # type: (str, bool, Optional[str], bool, Optional[str]) -> str + # type: (str, Optional[str], bool, Optional[str], bool) -> str """ Get a local copy of the remote file. If the remote URL is a direct file access, the returned link is the same, otherwise a link to a local copy of the url file is returned. @@ -31,11 +31,11 @@ class StorageManager(object): Oldest accessed files are deleted when cache is full. :param str remote_url: remote url link (string) - :param force_download: download file from remote even if exists in local cache :param str cache_context: Optional caching context identifier (string), default context 'global' :param bool extract_archive: if True returned path will be a cached folder containing the archive's content, currently only zip files are supported. :param name: name of artifact. + :param force_download: download file from remote even if exists in local cache :return: Full path to local copy of the requested url. Return None on Error. """ cached_file = CacheManager.get_cache_manager(