check for hardlinks when scanning

Authored by sandsmark on Jul 23 2019, 8:15 PM.