Check the file type, for some odd reason hardlinks and softlinks show up as regular files. Oh well.