method
entries
entries(p1)
public
Returns an array containing all of the filenames in the given directory. Will raise a SystemCallError if the named directory doesn’t exist.
Dir.entries("testdir") #=> [".", "..", "config.h", "main.rb"]