using ruby how to get number of files in a given Directory,the file count should include count from recursive directories.
Eg: folder1(2 files) -----> folder2(4 files)
How about the following:
find . -typef|wc -l
Also, what are the downsides of using this over Dir.count method?