Check file not dir