Skip to content

fix: use MkdirAll to create parent cache directories#16

Merged
alecthomas merged 1 commit intoalecthomas:masterfrom
shs96c:shs-fix-cache-dir-creation
Mar 20, 2026
Merged

fix: use MkdirAll to create parent cache directories#16
alecthomas merged 1 commit intoalecthomas:masterfrom
shs96c:shs-fix-cache-dir-creation

Conversation

@shs96c
Copy link
Contributor

@shs96c shs96c commented Mar 19, 2026

When the user's cache directory (e.g. ~/.cache) doesn't exist, os.Mkdir fails because it doesn't create parent directories. Use os.MkdirAll instead to create the full directory hierarchy.

When the user's cache directory (e.g. ~/.cache) doesn't exist,
os.Mkdir fails because it doesn't create parent directories.
Use os.MkdirAll instead to create the full directory hierarchy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alecthomas alecthomas merged commit dfafbfa into alecthomas:master Mar 20, 2026
1 check passed
@shs96c shs96c deleted the shs-fix-cache-dir-creation branch March 20, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants