returns the opposite side's name, only if different
(name string, src, dst fs.DirEntry)
| 92 | |
| 93 | // returns the opposite side's name, only if different |
| 94 | func 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 |
| 109 | func (b *bisyncRun) WriteResults(ctx context.Context, sigil operations.Sigil, src, dst fs.DirEntry, err error) { |
no test coverage detected
searching dependent graphs…