package utils import "os" func EnsureDir(path string) int { err := os.MkdirAll(path, 0755) if err != nil { return -1 } return 0 }