A regular file stores ordinary file data, unlike a directory or another special filesystem entity. Ruby identifies regular files with File.file?, allowing directory entries to be filtered before processing. section 12.4.1
Summing regular-file sizes
Build full paths from a directory's entries, remove hidden names, retain entries for which File.file? returns true, and add their sizes with File.size.
