Filtering symlinks before trying to process them