In a parallel setup this could fail
This commit is contained in:
@@ -316,8 +316,7 @@ def get_from_cache(
|
|||||||
if isinstance(cache_dir, Path):
|
if isinstance(cache_dir, Path):
|
||||||
cache_dir = str(cache_dir)
|
cache_dir = str(cache_dir)
|
||||||
|
|
||||||
if not os.path.exists(cache_dir):
|
os.makedirs(cache_dir, exist_ok=True)
|
||||||
os.makedirs(cache_dir)
|
|
||||||
|
|
||||||
# Get eTag to add to filename, if it exists.
|
# Get eTag to add to filename, if it exists.
|
||||||
if url.startswith("s3://"):
|
if url.startswith("s3://"):
|
||||||
|
|||||||
Reference in New Issue
Block a user