MCPcopy
hub / github.com/syncthing/syncthing / IndexUpdate

Method IndexUpdate

lib/protocol/wireformat.go:28–34  ·  view source on GitHub ↗
(ctx context.Context, idxUp *IndexUpdate)

Source from the content-addressed store, hash-verified

26}
27
28func (c wireFormatConnection) IndexUpdate(ctx context.Context, idxUp *IndexUpdate) error {
29 for i := range idxUp.Files {
30 idxUp.Files[i].Name = norm.NFC.String(filepath.ToSlash(idxUp.Files[i].Name))
31 }
32
33 return c.Connection.IndexUpdate(ctx, idxUp)
34}
35
36func (c wireFormatConnection) Request(ctx context.Context, req *Request) ([]byte, error) {
37 req.Name = norm.NFC.String(filepath.ToSlash(req.Name))

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
IndexUpdateMethod · 0.65

Tested by

no test coverage detected