func mode(path string) os.FileMode {
	if fi, err := os.Stat(path); err == nil {
		return fi.Mode()
	}

	return 0
}
func mode(path string) os.FileMode {
	if fi, err := os.Stat(path); err == nil {
		return fi.Mode()
	}

	return 0
}
func mode ( path string ) os . FileMode { if fi , err := os . Stat ( path ) ; err == nil { return fi . Mode ( ) } return 0 }
// mode returns the mode of the path.
mode returns the mode of the path .