MCPcopy Create free account
hub / github.com/denormal/go-gitignore / Match

Method Match

pattern.go:193–207  ·  view source on GitHub ↗

path() Match returns true if the given path matches the path 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 fnmatch() with flags set to FNM_PATHNAME. It is assumed path is relative to the base path of the

(path string, isdir bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

MatchMethod · 0.65

Tested by

no test coverage detected