apply path filter after the file has been determined not to be a symlink