-
Notifications
You must be signed in to change notification settings - Fork 1
Implement File storage in file system #680
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
base: master
Are you sure you want to change the base?
Conversation
rawdaGastan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add tests, please
| if err != nil { | ||
| return Configuration{}, fmt.Errorf("failed to expand file storage base directory path: %w", err) | ||
| } | ||
| if _, err := os.Stat(config.FileStoragePath); os.IsNotExist(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is checked in expandPath? no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, expand path only expands tilde and converts to absolute path, it doesn't check if path exist or not
5a5e59d to
2256595
Compare
2256595 to
c854c4c
Compare
Description
Changes
Related Issues
#673
Checklist