MCPcopy
hub / github.com/kopia/kopia / Compare

Method Compare

internal/diff/diff.go:61–67  ·  view source on GitHub ↗

Compare compares two filesystem entries and emits their diff information.

(ctx context.Context, e1, e2 fs.Entry)

Source from the content-addressed store, hash-verified

59
60// Compare compares two filesystem entries and emits their diff information.
61func (c *Comparer) Compare(ctx context.Context, e1, e2 fs.Entry) (Stats, error) {
62 c.stats = Stats{} // reset stats
63
64 err := c.compareEntry(ctx, e1, e2, ".")
65
66 return c.stats, err
67}
68
69// Close removes all temporary files used by the comparer.
70func (c *Comparer) Close() error {

Calls 1

compareEntryMethod · 0.95