From: Joel VanderWerf Date: 2003-11-06T11:30:03+09:00 Subject: Re: how to create path subdirectories kean wrote: > Hi- > looking for a way to create /test1/test2/test3/test4 subdirectories all > together. I was looking at Dir.mkdir but can't do > Dir.mkdir("./test1/test2/test3/test4"). I'm pretty new in ruby and not > sure how to do it the ruby way ... the only way I can think of is to do > a array loop to make the dir. And maybe someone has write a code about > it. any help or suggestion? No loop needed :) require 'ftools' File.mkpath('test1/test2/test3/test4')