func ValidatePath(path string) (string, error) {
	path, err := normalpath.NormalizeAndValidate(path)
	if err != nil {
		return "", err
	}
	if path == "." {
		return "", errors.New("cannot use root")
	}
	return path, nil
}
// ValidatePath validates a path.
ValidatePath validates a path.
// ValidatePath validates a path .
func ValidatePath(path string) (string, error) {
	path, err := normalpath.NormalizeAndValidate(path)
	if err != nil {
		return "", err
	}
	if path == "." {
		return "", errors.New("cannot use root")
	}
	return path, nil
}
func ValidatePath ( path string ) ( string , error ) { path , err := normalpath . NormalizeAndValidate ( path ) if err != nil { return " " , err } if path == " " { return " " , errors . New ( " " ) } return path , nil }
ValidatePath validates a path.
ValidatePath validates a path .