func IsFile(path string) bool {
	fi, err := os.Stat(path)

	if err != nil {
		return false
	}

	mode := fi.Mode()
	return mode.IsRegular()
}
// IsFile returns a bool indicating whether the specified file is a regular file
IsFile returns a bool indicating whether the specified file is a regular file
// IsFile returns a bool indicating whether the specified file is a regular file
func IsFile(path string) bool {
	fi, err := os.Stat(path)
	if err != nil {
		return false
	}
	mode := fi.Mode()
	return mode.IsRegular()
}
func IsFile ( path string ) bool { fi , err := os . Stat ( path ) if err != nil { return false } mode := fi . Mode ( ) return mode . IsRegular ( ) }
IsFile returns a bool indicating whether the specified file is a regular file
IsFile returns a bool indicating whether the specified file is a regular file