dir checking