MCPcopy
hub / github.com/syncthing/syncthing / Contains

Method Contains

lib/fs/walkfs.go:38–46  ·  view source on GitHub ↗
(info FileInfo)

Source from the content-addressed store, hash-verified

36}
37
38func (ancestors *ancestorDirList) Contains(info FileInfo) bool {
39 l.Debugf("ancestorDirList: Contains '%s'", info.Name())
40 for _, ancestor := range ancestors.list {
41 if ancestors.fs.SameFile(info, ancestor) {
42 return true
43 }
44 }
45 return false
46}
47
48// WalkFunc is the type of the function called for each file or directory
49// visited by Walk. The path argument contains the argument to Walk as a

Callers 15

buildDebFunction · 0.80
shouldBuildSysoFunction · 0.80
getGitVersionFunction · 0.80
getVersionFunction · 0.80
currentAndLatestVersionsFunction · 0.80
mainFunction · 0.80
parseCopyrightNoticesFunction · 0.80
TestRequestMaxSizeFunction · 0.80
TestEnDecryptNameFunction · 0.80
TestEnDecryptBytesFunction · 0.80
TestLuhn32Function · 0.80

Calls 3

DebugfMethod · 0.80
NameMethod · 0.65
SameFileMethod · 0.65

Tested by 15

TestRequestMaxSizeFunction · 0.64
TestEnDecryptNameFunction · 0.64
TestEnDecryptBytesFunction · 0.64
TestLuhn32Function · 0.64
TestUnifySubsFunction · 0.64
BenchmarkUnifySubsFunction · 0.64
TestGlobalAnnounceFunction · 0.64