read entries of a directory (WIP)