MCPcopy
hub / github.com/rclone/rclone / altName

Function altName

cmd/bisync/queue.go:94–106  ·  view source on GitHub ↗

returns the opposite side's name, only if different

(name string, src, dst fs.DirEntry)

Source from the content-addressed store, hash-verified

92
93// returns the opposite side's name, only if different
94func altName(name string, src, dst fs.DirEntry) string {
95 if src != nil && dst != nil {
96 if src.Remote() != dst.Remote() {
97 switch name {
98 case src.Remote():
99 return dst.Remote()
100 case dst.Remote():
101 return src.Remote()
102 }
103 }
104 }
105 return ""
106}
107
108// WriteResults is Bisync's LoggerFn
109func (b *bisyncRun) WriteResults(ctx context.Context, sigil operations.Sigil, src, dst fs.DirEntry, err error) {

Callers 1

WriteResultsMethod · 0.85

Calls 1

RemoteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…