// IsRugular returns true if the path given is a regular file
IsRugular returns true if the path given is a regular file
// IsRugular returns true if the path given is a regular file
func IsRugular(path string) (bool, error) {
	info, err := os.Stat(path)
	if err != nil {
		return false, err
	}
	if info.Mode().IsRegular() {
		return true, nil
	}
	return false, nil
}
func IsRugular ( path string ) ( bool , error ) { info , err := os . Stat ( path ) if err != nil { return false , err } if info . Mode ( ) . IsRegular ( ) { return true , nil } return false , nil }
IsRugular returns true if the path given is a regular file
IsRugular returns true if the path given is a regular file