Minor refactoring. Use "File.Readdir" instead of "File.Readdirnames"