func needsExclusion()

in path.go [25:34]


func needsExclusion(path string, exclude []string) bool {
	for _, excluded := range exclude {
		excluded = cleanPathSuffixes(excluded, []string{"*", string(os.PathSeparator)})
		if strings.HasPrefix(path, excluded) {
			return true
		}
	}

	return false
}