Skip to content

Feature: Distinguish "delete" and "delete_dupe" in diff #65

Description

@Big-Head-Mode

Running on MX (Debian)

snapraid is already the newest version (12.4-1).

I see the latest version is 14.9. Let me know if this is fixed in newer versions.


Imagine you have foo.mkv and an exact copy foo2.mkv on your drive. You notice it's duplicated and you delete foo2.mkv.

If you run snapraid diff, you'll see something like this:

$ snapraid diff
Comparing...
delete /a/foo2.mkv
  2000 equal
       0 added
       1 removed
       0 updated
       0 moved
       0 copied
       0 restored

But snapraid dup uses the stored hash and correctly identifies an exact duplicate (same hash). It would be better to list deleted dupes separately:

$ snapraid diff
Comparing...
delete_dupe /a/foo2.mkv
  2000 equal
       0 added
       0 removed
       1 removed duplicate
       0 updated
       0 moved
       0 copied
       0 restored

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions