fix: ensure parent directories are created in EnsureDirExists function (#293)

This commit is contained in:
Matthis
2023-04-17 15:38:43 +02:00
committed by GitHub
parent 3c4bc1a92c
commit af8b350520

View File

@@ -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