qarmin / czkawka

Multi functional app to find duplicates, empty folders, similar images etc.
Other
18.36k stars 605 forks source link

Support hard links for similar images and videos with `-L` #1201

Closed blob79 closed 4 months ago

blob79 commented 5 months ago

This ignores matches for files that have the same inode.

This only works on Unix.

qarmin commented 4 months ago

Thanks!

qarmin commented 4 months ago

Looks that one test is flaky

failures:

---- common_dir_traversal::tests::test_traversal_group_by_inode stdout ----
thread 'common_dir_traversal::tests::test_traversal_group_by_inode' panicked at czkawka_core/src/common_dir_traversal.rs:769:17:
assertion `left == right` failed
  left: [FileEntry { path: "/tmp/.tmpZCDWnm/a", size: 1, modified_date: 100 }, FileEntry { path: "/tmp/.tmpZCDWnm/c", size: 1, modified_date: 100 }]
 right: [FileEntry { path: "/tmp/.tmpZCDWnm/c", size: 1, modified_date: 100 }, FileEntry { path: "/tmp/.tmpZCDWnm/a", size: 1, modified_date: 100 }]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    common_dir_traversal::tests::test_traversal_group_by_inode

test result: FAILED. 27 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s

error: test failed, to rerun pass `-p czkawka_core --lib`
Error: Process completed with exit code 101.
blob79 commented 4 months ago

Should be fix here https://github.com/qarmin/czkawka/pull/1209.