From: Yukihiro Matsumoto Date: 2009-02-17T22:46:10+09:00 Subject: [ruby-core:22196] Re: File#size et al Hi, In message "Re: [ruby-core:22088] File#size et al" on Sun, 15 Feb 2009 03:26:09 +0900, Roger Pack writes: |In a recent discussion[1] on some more "convenience" methods for File, |it seems that quite a few methods would be convenient for it | |File#size # does a stat.size or a flush then a size. Currently we have File#stat and #atime, #mtime, #ctime. What else do you think we need? Besides that requirement for flushing may vary methods to methods. |A few things that would be nice: |1) more methods on an existing file Please more concrete. What kind of methods, with what concrete behavior? |2) more intuitive structure--currently there's File FileUtils Dir |FileTest etc. | ex: you can do File.directory? but not Dir.directory? and Pathname |has no rm_rf. Forget about FileTest, which is a package for file test module functions. It's for inclusion when you want to call test methods in functional style. If you want "more intuitive structure", you have to describe "intuitive structure" first, since intuitiveness is very subjective. I don't think merely adding methods to Dir makes structure intuitive. matz.