enumerating the contents of a directory