do not open directories as file