-
-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardlinks are considered duplicate. #352
Comments
Currently ignoring hardlinks are implemented only for Unix based systems like Linux and macOS. If anyone want to implement this feature, this is code responsible for it czkawka/czkawka_core/src/duplicate.rs Lines 1306 to 1324 in 2af7102
|
While I don't have a PR to submit (as I have 0 experience with Rust), I did reach somewhat of a solution. However, it requires the win32api, which can be used but requires the Rust for Windows dependency. The method revolves around the usage of GetFileInformationByHandle, which returns a structure named BY_HANDLE_FILE_INFORMATION and then check the nFileIndexHigh, nFileIndexLow and dwVolumeSerialNumber to see if they are the same. Hope this somewhat helps. |
The file index information can be obtained by nightly api Please refer to rust-lang/rust#63010.
|
This is important feature!
|
Hello, I have many files duplicated as Hardlinks on my windows PC, and Czkawka considered them as duplicated even though they were already non-duplicate due to them being hardlinks.
I ran the analysis using Hash+Blake3 method, and it returned a LOT of alleged duplicated files that were all HardLinks.
¿How can I make the software ignore hardlinks?
The text was updated successfully, but these errors were encountered: