MCPcopy
hub / github.com/syncthing/syncthing / Walk

Method Walk

lib/model/model_test.go:4155–4163  ·  view source on GitHub ↗
(root string, walkFn fs.WalkFunc)

Source from the content-addressed store, hash-verified

4153}
4154
4155func (f modtimeTruncatingFS) Walk(root string, walkFn fs.WalkFunc) error {
4156 return f.Filesystem.Walk(root, func(path string, info fs.FileInfo, err error) error {
4157 if err != nil {
4158 return walkFn(path, nil, err)
4159 }
4160 fmt.Println("walk", info.Name())
4161 return walkFn(path, modtimeTruncatingFileInfo{trunc: f.trunc, FileInfo: info}, nil)
4162 })
4163}
4164
4165type modtimeTruncatingFileInfo struct {
4166 trunc time.Duration

Callers

nothing calls this directly

Calls 2

WalkMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected