MCPcopy
hub / github.com/syncthing/syncthing / ChangeDetector

Interface ChangeDetector

lib/ignore/ignore.go:116–121  ·  view source on GitHub ↗

The ChangeDetector is responsible for determining if files have changed on disk. It gets told to Remember() files (name and modtime) and will then get asked if a file has been Seen() (i.e., Remember() has been called on it) and if any of the files have Changed(). To forget all files, call Reset().

Source from the content-addressed store, hash-verified

114// called on it) and if any of the files have Changed(). To forget all
115// files, call Reset().
116type ChangeDetector interface {
117 Remember(fs fs.Filesystem, name string, modtime time.Time)
118 Seen(fs fs.Filesystem, name string) bool
119 Changed() bool
120 Reset()
121}
122
123type Matcher struct {
124 fs fs.Filesystem

Callers 13

LoadMethod · 0.65
loadParseIncludeFileFunction · 0.65
LoadMethod · 0.65
loadParseIncludeFileFunction · 0.65
LoadMethod · 0.65
zipFileFunction · 0.65
ServeMethod · 0.65
ServeMethod · 0.65
ServeMethod · 0.65
handleAutoAcceptsMethod · 0.65
ServeMethod · 0.65

Implementers 2

alwaysChangedlib/model/testutils_test.go
modtimeCheckerlib/ignore/ignore.go

Calls

no outgoing calls

Tested by

no test coverage detected