func io/fs.ValidPath

5 uses

	io/fs (current package)
		fs.go#L47: func ValidPath(name string) bool {
		sub.go#L35: 	if !ValidPath(dir) {
		sub.go#L54: 	if !ValidPath(name) {

	archive/zip
		reader.go#L705: 	if e == nil || !fs.ValidPath(name) {

	os
		file.go#L637: 	if !fs.ValidPath(name) || runtime.GOOS == "windows" && containsAny(name, `\:`) {