1
0
Fork 0
mirror of synced 2024-05-06 05:22:25 +12:00
czkawka/czkawka_core
Thomas Andreas Jung 1e94587de8
Ignore duplicates if those are hard links (#234)
This is a proof of concept.

```
$ echo a > hardlinks/a
$ cp hardlinks/{a,b}
$ ln hardlinks/{a,c}
$ cargo run --bin czkawka_cli dup -m 1 --directories $(pwd)/hardlinks -f /dev/stderr > /dev/null
-------------------------------------------------Files with same hashes-------------------------------------------------
Found 1 duplicated files which in 1 groups which takes 2 B.

---- Size 2 B (2) - 2 files
/home/thomas/Development/czkawka/hardlinks/a
/home/thomas/Development/czkawka/hardlinks/b
```

Open:
- Windows support
- Probably this should be a cli option
2021-02-20 12:28:06 +01:00
..
src Ignore duplicates if those are hard links (#234) 2021-02-20 12:28:06 +01:00
Cargo.toml Keep original file if replacing duplicate with hardlink fails (#253) 2021-02-11 19:04:23 +01:00