From: Philip Mak Date: 2002-07-02T09:21:33+09:00 Subject: Re: Question: ruby vs. ksh On Tue, Jul 02, 2002 at 09:10:35AM +0900, Tim Hammerquist wrote: > # 2) > > 'foo/bar'.split('/').each do |dir| > Dir::mkdir(dir) > end Isn't that going to do this: mkdir foo mkdir bar instead of this: mkdir foo mkdir foo/bar > # 3) > require "ftools" # standard library > File::mkpath('foo/bar') This seems like the cleanest way to do it.