func EqualsOrContainsPath(value string, path string, pathType PathType) bool {
	pathRoot := stringOSPathSeparator
	if pathType == Relative {
		pathRoot = "."
	}

	if value == pathRoot {
		return true
	}

	// Walk up the path and compare at each directory level until there is a
	// match or the path reaches its root (either `/` or `.`).
	for curPath := path; curPath != pathRoot; curPath = Dir(curPath) {
		if value == curPath {
			return true
		}
	}
	return false
}
// EqualsOrContainsPath returns true if the value is equal to or contains the path.
//
// The path and value are expected to be normalized and validated if Relative is used.
// The path and value are expected to be normalized and absolute if Absolute is used.
EqualsOrContainsPath returns true if the value is equal to or contains the path.

The path and value are expected to be normalized and validated if Relative is used.
The path and value are expected to be normalized and absolute if Absolute is used.
// EqualsOrContainsPath returns true if the value is equal to or contains the path . // // The path and value are expected to be normalized and validated if Relative is used . // The path and value are expected to be normalized and absolute if Absolute is used .
func EqualsOrContainsPath(value string, path string, pathType PathType) bool {
	pathRoot := stringOSPathSeparator
	if pathType == Relative {
		pathRoot = "."
	}
	if value == pathRoot {
		return true
	}
	for curPath := path; curPath != pathRoot; curPath = Dir(curPath) {
		if value == curPath {
			return true
		}
	}
	return false
}
func EqualsOrContainsPath ( value string , path string , pathType PathType ) bool { pathRoot := stringOSPathSeparator if pathType == Relative { pathRoot = " " } if value == pathRoot { return true } for curPath := path ; curPath != pathRoot ; curPath = Dir ( curPath ) { if value == curPath { return true } } return false }
EqualsOrContainsPath returns true if the value is equal to or contains the path.
EqualsOrContainsPath returns true if the value is equal to or contains the path .
// Walk up the path and compare at each directory level until there is a // match or the path reaches its root (either `/` or `.`).