func MapHasEqualOrContainingPath(m map[string]struct{}, path string, pathType PathType) bool {
	if len(m) == 0 {
		return false
	}

	pathRoot := stringOSPathSeparator
	if pathType == Relative {
		pathRoot = "."
	}

	if _, ok := m[pathRoot]; ok {
		return true
	}
	for curPath := path; curPath != pathRoot; curPath = Dir(curPath) {
		if _, ok := m[curPath]; ok {
			return true
		}
	}
	return false
}
// MapHasEqualOrContainingPath returns true if the path matches any file or directory in the map.
//
// The path and keys in m are expected to be normalized and validated if Relative is used.
// The path and keys in m are expected to be normalized and absolute if Absolute is used.
//
// If the map is empty, returns false.
MapHasEqualOrContainingPath returns true if the path matches any file or directory in the map.

The path and keys in m are expected to be normalized and validated if Relative is used.
The path and keys in m are expected to be normalized and absolute if Absolute is used.

If the map is empty, returns false.
// MapHasEqualOrContainingPath returns true if the path matches any file or directory in the map . // // The path and keys in m are expected to be normalized and validated if Relative is used . // The path and keys in m are expected to be normalized and absolute if Absolute is used . // // If the map is empty returns false .
func MapHasEqualOrContainingPath(m map[string]struct{}, path string, pathType PathType) bool {
	if len(m) == 0 {
		return false
	}
	pathRoot := stringOSPathSeparator
	if pathType == Relative {
		pathRoot = "."
	}
	if _, ok := m[pathRoot]; ok {
		return true
	}
	for curPath := path; curPath != pathRoot; curPath = Dir(curPath) {
		if _, ok := m[curPath]; ok {
			return true
		}
	}
	return false
}
func MapHasEqualOrContainingPath ( m map [ string ] struct { } , path string , pathType PathType ) bool { if len ( m ) == 0 { return false } pathRoot := stringOSPathSeparator if pathType == Relative { pathRoot = " " } if _ , ok := m [ pathRoot ] ; ok { return true } for curPath := path ; curPath != pathRoot ; curPath = Dir ( curPath ) { if _ , ok := m [ curPath ] ; ok { return true } } return false }
MapHasEqualOrContainingPath returns true if the path matches any file or directory in the map.
MapHasEqualOrContainingPath returns true if the path matches any file or directory in the map .