Check for file not directory