dirent implemented