added DirectoryReader and implementation of DirectoryReader for UNIX