MCPcopy
hub / github.com/docker/compose / Matches

Method Matches

pkg/watch/notify.go:61–61  ·  pkg/watch/notify.go::PathMatcher.Matches
(file string)

Source from the content-addressed store, hash-verified

59// The PathMatcher interface helps us manage these ignores.
60type PathMatcher interface {
61 Matches(file string) (bool, error)
62
63 // If this matches the entire dir, we can often optimize filetree walks a bit.
64 MatchesEntireDir(file string) (bool, error)

Callers 5

MatchesMethod · 0.65
TestEphemeralPathMatcherFunction · 0.65
MatchesMethod · 0.65
handleWatchBatchMethod · 0.65
shouldIgnoreFunction · 0.65

Implementers 4

AnyMatcherpkg/watch/notify.go
EmptyMatcherpkg/watch/notify.go
CompositePathMatcherpkg/watch/notify.go
dockerPathMatcherpkg/watch/dockerignore.go

Calls

no outgoing calls

Tested by 1

TestEphemeralPathMatcherFunction · 0.52