func FileExists(path string) (bool, error) {
	pi, err := pathExists(path)
	if err != nil {
		return false, err
	}

	if pi.Exists && pi.IsDir {
		return false, ex.New("Path exists but is a directory", ex.OptMessagef("Path: %q", path))
	}

	return pi.Exists, nil
}
// FileExists determines if a path exists and is a file (not a directory).
FileExists determines if a path exists and is a file (not a directory).
// FileExists determines if a path exists and is a file ( not a directory ) .
func FileExists(path string) (bool, error) {
	pi, err := pathExists(path)
	if err != nil {
		return false, err
	}
	if pi.Exists && pi.IsDir {
		return false, ex.New("Path exists but is a directory", ex.OptMessagef("Path: %q", path))
	}
	return pi.Exists, nil
}
func FileExists ( path string ) ( bool , error ) { pi , err := pathExists ( path ) if err != nil { return false , err } if pi . Exists && pi . IsDir { return false , ex . New ( " " , ex . OptMessagef ( " " , path ) ) } return pi . Exists , nil }
FileExists determines if a path exists and is a file (not a directory).
FileExists determines if a path exists and is a file ( not a directory ) .