Fix StorageManager: always makes sure local destination folder exists

This commit is contained in:
allegroai 2020-12-06 11:21:49 +02:00
parent c433f8e575
commit 85f6e48d52

View File

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