filenames = [] Dir.foreach("Saves")do |s| filenames << s if s != "." && s != ".." end