Consider sym- or hardlinks when comparing files