in gplog/gplog.go [364:378]
func createLogDirectory(dirname string) {
info, err := operating.System.Stat(dirname)
if err != nil {
if operating.System.IsNotExist(err) {
err = operating.System.MkdirAll(dirname, 0755)
if err != nil {
abort(errors.Errorf("Cannot create log directory %s: %v", dirname, err))
}
} else {
abort(errors.Errorf("Cannot stat log directory %s: %v", dirname, err))
}
} else if !(info.IsDir()) {
abort(errors.Errorf("%s is a file, not a directory", dirname))
}
}