diff --git a/trains/storage/helper.py b/trains/storage/helper.py index 2458f261..f8804284 100644 --- a/trains/storage/helper.py +++ b/trains/storage/helper.py @@ -674,6 +674,10 @@ class StorageHelper(object): # chunks size is ignored and always 5Mb chunk_size_mb = 5 + # make sure we have the destination folder + # noinspection PyBroadException + Path(temp_local_path).parent.mkdir(parents=True, exist_ok=True) + # try to get file size try: if isinstance(self._driver, _HttpDriver) and obj: