Dir.entries « File Directory « Ruby






1.Dir.entries contains all the entries found in a directory
2.get a list of the files and directories within a specific directory using Dir.entries:
3.Listing A Directory