Compare compares two filesystem entries and emits their diff information.
(ctx context.Context, e1, e2 fs.Entry)
| 59 | |
| 60 | // Compare compares two filesystem entries and emits their diff information. |
| 61 | func (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. |
| 70 | func (c *Comparer) Close() error { |