Dir.mkdir to autocreate subdirs

Hi Friends:

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?

I am asking since I do not want to re-invent or maybe my docs and ri are not
updated :frowning:

Thanks for the help,
-botp

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