check derictory