Open file by dirent (faster)