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 correct temporary folder on iOS #394

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Conversation

s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Mar 2, 2024

On the device, the /tmp folder is not accessible for regular apps on iOS. NSTemporaryDirectory returns a usable directory instead.

@s-ludwig s-ludwig requested a review from l-kramer March 2, 2024 10:39
@s-ludwig s-ludwig merged commit 3d79bbf into master Mar 2, 2024
12 checks passed
@s-ludwig s-ludwig deleted the ios_temp_file_fix branch March 2, 2024 11:16
@Geod24
Copy link
Contributor

Geod24 commented Mar 3, 2024

Wouldn't https://dlang.org/library/std/file/temp_dir.html be appropriate ?

@s-ludwig
Copy link
Member Author

s-ludwig commented Mar 3, 2024

Could be, I'd have to test whether iOS populates TMPDIR appropriately. But for other Posix platforms at least, we should probably use it to make this more robust against more unusual system configurations.

This pull request was closed.
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.

3 participants