osutils/file.go
func SafeCreate(name ...string) (file *os.File, err error) {
	p, e := ensurePath(path.Join(name...))

	if e != nil {
		return nil, e
	}
	return os.Create(p)
}
func SafeCreate(name ...string) (file *os.File, err error) {
	p, e := ensurePath(path.Join(name...))

	if e != nil {
		return nil, e
	}
	return os.Create(p)
}
func SafeCreate ( name ... string ) ( file * os . File , err error ) { p , e := ensurePath ( path . Join ( name ... ) ) if e != nil { return nil , e } return os . Create ( p ) }
// SafeCreate creates a file, creating parent directories if needed
SafeCreate creates a file creating parent directories if needed