code: func (a *any) Match(path string, isdir bool) bool {
  	// are we expecting a directory?
  	if a._directory && !isdir {
  		return false
  	}
  
  	// split the path into components
  	_parts := strings.Split(path, string(_SEPARATOR))
  
  	// attempt to match the parts against the pattern tokens
  	return a.match(_parts, a._tokens)
  }
docs: // Match returns true if the given path matches the any pattern. If the
  // pattern is meant for directories only, and the path is not a directory,
  // Match will return false. The matching is performed by recursively applying
  // fnmatch() with flags set to FNM_PATHNAME. It is assumed path is relative to
  // the base path of the owning GitIgnore.