allows us to get the right hashtype during the LoggerFn without knowing whether it's Path1/Path2
(fname string)
| 63 | |
| 64 | // allows us to get the right hashtype during the LoggerFn without knowing whether it's Path1/Path2 |
| 65 | func (b *bisyncRun) getHashType(fname string) hash.Type { |
| 66 | ht, ok := b.queueOpt.hashTypes[fname] |
| 67 | if ok { |
| 68 | return ht |
| 69 | } |
| 70 | return hash.None |
| 71 | } |
| 72 | |
| 73 | // FsPathIfAny handles type assertions and returns a formatted bilib.FsPath if valid, otherwise "" |
| 74 | func FsPathIfAny(x fs.DirEntry) string { |
no outgoing calls
no test coverage detected