MCPcopy
hub / github.com/rclone/rclone / getHashType

Method getHashType

cmd/bisync/queue.go:65–71  ·  view source on GitHub ↗

allows us to get the right hashtype during the LoggerFn without knowing whether it's Path1/Path2

(fname string)

Source from the content-addressed store, hash-verified

63
64// allows us to get the right hashtype during the LoggerFn without knowing whether it's Path1/Path2
65func (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 ""
74func FsPathIfAny(x fs.DirEntry) string {

Callers 2

EqualFnMethod · 0.95
WriteResultsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected