Skip to content

Commit

Permalink
fix regression, ensure cache path is created if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
NodeJSmith committed Jan 10, 2025
1 parent fdf1383 commit d464ebb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/otf_api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class CacheableData:
name: str
cache_dir: Path

def __attrs_post_init__(self):
self.cache_dir.mkdir(parents=True, exist_ok=True)

@property
def cache_path(self) -> Path:
"""The path to the cache file."""
Expand Down

0 comments on commit d464ebb

Please sign in to comment.