It's probably OK for now since even `Dir.foreach` gets an Array of all entries.