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

fix: Create parent directories for file storage #1045

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

pavelzw
Copy link
Contributor

@pavelzw pavelzw commented Feb 5, 2025

Description

https://discord.com/channels/1082332781146800168/1085116502375673876/1336680865664733197

this also refactors the error handling of authentication storage

@pavelzw pavelzw changed the title debug auth storage on linux fix: Create parent directories for file storage Feb 5, 2025
@pavelzw pavelzw marked this pull request as ready for review February 5, 2025 14:52
Comment on lines +101 to +108
let parent = self
.path
.parent()
.ok_or(FileStorageError::IOError(std::io::Error::new(
std::io::ErrorKind::NotFound,
"Parent directory not found",
)))?;
std::fs::create_dir_all(parent)?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the actual issue

@ruben-arts
Copy link
Collaborator

While testing some more I ran into some more issues with the S3 credentials in the login. So I fixed that so I can add a test in pixi for it.

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