Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the directories package to detect a temp directory #94

Merged

Conversation

DitherWither
Copy link
Contributor

Fixes #9

As directories.tmp_file() returning Error(Nil) means that /tmp/ or similar didn't exist, a good fallback would be the current working directory

@DitherWither DitherWither marked this pull request as ready for review August 21, 2024 18:53
CHANGELOG.md Outdated Show resolved Hide resolved
@DitherWither DitherWither requested a review from lpil August 23, 2024 07:55
Copy link
Collaborator

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!!

@lpil lpil merged commit 4194c49 into gleam-wisp:main Aug 23, 2024
1 check passed
@DitherWither DitherWither deleted the tempfile_directory_cross_platform_fix branch August 23, 2024 15:59
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.

Automatically detect a suitable directory to write temp files to for the current OS
2 participants