directory check.