birkenfeld / fddf

Fast data dupe finder
Apache License 2.0
114 stars 7 forks source link

Support hardlink detection on Windows nightly #22

Open topin89 opened 4 years ago

topin89 commented 4 years ago

On nightly, there are function that are essentially Windows counterpart to ino and dev, _fileindex and _volume_serialnumber. The problem is, on directory walking, as opposed to getting metadata from a file directly, they return None, so I had to change logic of the inner loop as well as check_inode signature.

Next trouble was checking if nightly build or not. I had to use build.rs script to get this info.

Checked Windows and WSL build, all seems to work as expected, hardlinks are skipped on nightly build and considered dupes on stable.