From: Benoit Cerrina Date: 2001-05-30T00:11:24+09:00 Subject: [ruby-talk:15935] Re: Dir[] I agree that this would be more intuitive and would also take care of the white spaces nicely. Benoit "Mike" wrote in message news:20010529123531.094a77c8.mike@lepton.fr... > On Tue, 29 May 2001 14:42:52 +0900 > matz@zetabits.com (Yukihiro Matsumoto) wrote: > > > Hmm, ruby 1.7 allows you to escape space by \. > > > > files = Dir["C:/dir\\ dir1/next dir2/*"] > > > > Why should spaces be escaped? Why would a space be a delimiter in this method? > > It appears that you can use multiple patterns in this method (call Dir["/* /home/*"] and obtain the files in / and /home), but there's nothing about that in the documentation and I don't think it's usefull. > I would prefer to call Dir["/*", "/home/*"] and be able to use spaces without any conversion. > > Mike.