Dir.mkdir to autocreate subdirs

thanks sir Nobu. It works like a charm.
All the time I was looking for it under Class Dir. If I may ask, why is it
classed under File rather than Dir?

Thanks again -botp

···

-----Original Message-----
From: nobu.nokada@softhome.net [mailto:nobu.nokada@softhome.net]
Sent: Saturday, September 14, 2002 6:44 PM
To: ruby-talk@ruby-lang.org
Subject: Re: Dir.mkdir to autocreate subdirs

Hi,

At Sat, 14 Sep 2002 19:10:10 +0900, > Peña, Botp wrote:

I’d like to run Dir.mkdir(“dir1/dir2/dir3”) such that it
creates lower
dirs (dir1, dir2) if they do not exist yet. Is this possible?

require ‘ftools’
File.makedirs(“dir1/dir2/dir3”)


Nobu Nakada