moved ReadDir() closer to loop over dirEntries