From: Minero Aoki Date: 2004-06-15T22:21:48+09:00 Subject: Re: mkdir -p Hi, In mail "Re: mkdir -p" Martin DeMello wrote: > > |> FileUtils.mkdir_p(path) > > | > > > > |Thanks. Why doesn't FileUtils mix this into Dir? One reason is that FileUtils's methods have different characteristics from File/Dir. * FileUtils methods accepts a path or a list of pathes. * FileUtils methods accepts options. Dir.mkdir_p accepts a list of pathes, but Dir.mkdir does not accept a list... it's inconsistent. > On the other hand, perhaps mkdir doesn't belong as part of Dir - perhaps > we should consider renaming FileUtils to FileSystem and aliasing it so > as not to break old code - FileSystem.mkdir just reads more rubyishly to > me. I don't think so, FileUtils is just a module. FileSystem object is different beast. Regards, Minero Aoki