Innitial readdir function