MCPcopy
hub / github.com/syncthing/syncthing / Index

Method Index

lib/protocol/wireformat.go:20–26  ·  view source on GitHub ↗
(ctx context.Context, idx *Index)

Source from the content-addressed store, hash-verified

18}
19
20func (c wireFormatConnection) Index(ctx context.Context, idx *Index) error {
21 for i := range idx.Files {
22 idx.Files[i].Name = norm.NFC.String(filepath.ToSlash(idx.Files[i].Name))
23 }
24
25 return c.Connection.Index(ctx, idx)
26}
27
28func (c wireFormatConnection) IndexUpdate(ctx context.Context, idxUp *IndexUpdate) error {
29 for i := range idxUp.Files {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
IndexMethod · 0.65

Tested by

no test coverage detected