Skip to content

Commit 1bae454

Browse files
authored
Merge pull request #137 from Simon-Reif/fix_get_cache
create intermediate folders for cache_dir
2 parents eca6ab5 + 93f0ec4 commit 1bae454

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
[//]: # (Note: {ref}/{doc} roles are used for references to the documentation)
88

99
## Unreleased
10+
### Fixed
11+
- Fixed error if parent(s) of the cache directory do not exist.
1012

1113
### Changed
1214
- Moved documentation from GitHub Pages to Read the Docs. This allows to more easily

src/cluster_utils/server/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def get_cache_directory() -> str:
287287
cache_dir = os.path.join(home, ".cache", "cluster_utils")
288288

289289
if not os.path.exists(cache_dir):
290-
os.mkdir(cache_dir)
290+
os.makedirs(cache_dir)
291291

292292
return cache_dir
293293

0 commit comments

Comments
 (0)