Skip to content

Commit

Permalink
Merge pull request #137 from Simon-Reif/fix_get_cache
Browse files Browse the repository at this point in the history
create intermediate folders for cache_dir
  • Loading branch information
luator authored Nov 28, 2024
2 parents eca6ab5 + 93f0ec4 commit 1bae454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[//]: # (Note: {ref}/{doc} roles are used for references to the documentation)

## Unreleased
### Fixed
- Fixed error if parent(s) of the cache directory do not exist.

### Changed
- Moved documentation from GitHub Pages to Read the Docs. This allows to more easily
Expand Down
2 changes: 1 addition & 1 deletion src/cluster_utils/server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def get_cache_directory() -> str:
cache_dir = os.path.join(home, ".cache", "cluster_utils")

if not os.path.exists(cache_dir):
os.mkdir(cache_dir)
os.makedirs(cache_dir)

return cache_dir

Expand Down

0 comments on commit 1bae454

Please sign in to comment.