Skip to content

Commit

Permalink
fix: ensure parent directories are created in EnsureDirExists function (
Browse files Browse the repository at this point in the history
  • Loading branch information
matthisholleville committed Apr 17, 2023
1 parent 3c4bc1a commit af8b350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func FileExists(path string) (bool, error) {
}

func EnsureDirExists(dir string) error {
err := os.Mkdir(dir, 0755)
err := os.MkdirAll(dir, 0755)

if errors.Is(err, os.ErrExist) {
return nil
Expand Down

0 comments on commit af8b350

Please sign in to comment.