func EnsureDir(dirName string) {
	if err := os.MkdirAll(dirName, 0755); err != nil {
		log.WithError(err).Fatalf("Cannot ensure directory %s exists", dirName)
	}
}
// EnsureDir ensures that the given directory exists.
// If an error occurs, the program fails.
EnsureDir ensures that the given directory exists.
If an error occurs, the program fails.
// EnsureDir ensures that the given directory exists . // If an error occurs the program fails .
func EnsureDir(dirName string) {
	if err := os.MkdirAll(dirName, 0755); err != nil {
		log.WithError(err).Fatalf("Cannot ensure directory %s exists", dirName)
	}
}
func EnsureDir ( dirName string ) { if err := os . MkdirAll ( dirName , 0755 ) ; err != nil { log . WithError ( err ) . Fatalf ( " " , dirName ) } }
EnsureDir ensures that the given directory exists.
EnsureDir ensures that the given directory exists .