Working on dirent IO to read dirents as files.