MCPcopy
hub / github.com/rclone/rclone / FsPathIfAny

Function FsPathIfAny

cmd/bisync/queue.go:74–80  ·  view source on GitHub ↗

FsPathIfAny handles type assertions and returns a formatted bilib.FsPath if valid, otherwise ""

(x fs.DirEntry)

Source from the content-addressed store, hash-verified

72
73// FsPathIfAny handles type assertions and returns a formatted bilib.FsPath if valid, otherwise ""
74func 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
82func resultName(result Results, side, src, dst fs.DirEntry) string {
83 if side != nil {

Callers 1

WriteResultsMethod · 0.85

Calls 2

FsPathFunction · 0.92
FsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…