MCPcopy
hub / github.com/kopia/kopia / maybeOID

Function maybeOID

internal/diff/diff.go:75–81  ·  view source on GitHub ↗
(e fs.Entry)

Source from the content-addressed store, hash-verified

73}
74
75func maybeOID(e fs.Entry) string {
76 if h, ok := e.(object.HasObjectID); ok {
77 return h.ObjectID().String()
78 }
79
80 return ""
81}
82
83func (c *Comparer) compareDirectories(ctx context.Context, dir1, dir2 fs.Directory, parent string) error {
84 log(ctx).Debugf("comparing directories %v (%v and %v)", parent, maybeOID(dir1), maybeOID(dir2))

Callers 1

compareDirectoriesMethod · 0.85

Calls 2

ObjectIDMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected