Skip to content

Commit

Permalink
use MkdirAll
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed May 13, 2024
1 parent 27a0727 commit aec398a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/store/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type IdentifierRecord struct {
func NewLocalStore(home string) (*LocalStore, error) {
h := filepath.Clean(home)
if !dirExist(h) {
if err := os.Mkdir(h, 0700); err != nil {
if err := os.MkdirAll(h, 0700); err != nil {
return nil, fmt.Errorf("failed to create new home directory: %w", err)
}
}
Expand Down

0 comments on commit aec398a

Please sign in to comment.