Closed Boscop closed 7 years ago
Thanks for the report. Is this on Windows? I'll have to make this check conditional...
Yes, on Windows.
Btw, maybe you can use this:
https://doc.rust-lang.org/std/path/struct.Path.html#method.symlink_metadata
path.symlink_metadata()?.file_type().is_symlink()
and get the target with path.canonicalize()
.
Well, the point here is to avoid counting two or more hardlinked files as duplicates.
On Windows hardlinks, while possible, are pretty uncommon, so I don't think it'll matter to leave out this check there.
But maybe it's still useful for Windows soft symlinks?
walkdir
is already supposed to ignore symlinks with follow_links(false)
.