Prevent infinite scanning, falling for symlink recursion.