Getting A File's Information In Ruby Using File::Stat | Blogfreakz - Web Design and Web... - 0 views
-
Arch Aznable on 15 Oct 12An example scenario would be like this: a program has to iterate over the files in a directory and determine the files sizes and the total size. Plus, it must work recursively, totaling the file sizes of all the files in all subdirectories of the current directory. To be able to achieve this task, we use the find library included with Ruby.