FsPathIfAny handles type assertions and returns a formatted bilib.FsPath if valid, otherwise ""
(x fs.DirEntry)
| 72 | |
| 73 | // FsPathIfAny handles type assertions and returns a formatted bilib.FsPath if valid, otherwise "" |
| 74 | func FsPathIfAny(x fs.DirEntry) string { |
| 75 | obj, ok := x.(fs.Object) |
| 76 | if x != nil && ok { |
| 77 | return bilib.FsPath(obj.Fs()) |
| 78 | } |
| 79 | return "" |
| 80 | } |
| 81 | |
| 82 | func resultName(result Results, side, src, dst fs.DirEntry) string { |
| 83 | if side != nil { |
no test coverage detected
searching dependent graphs…