add symlink directory check