Hello, Aleksi.
In message "[ruby-talk:6284] Dir.mkpath"
on 00/11/12, Aleksi Niemel<aleksi.niemela / cinnober.com> writes:
> May I propose an add to standard library, namely method mkpath to class D-
ir.
> (For non-unix-persons, the method makes all the directories needed to have
> all directories in the given path.) Here's a definition (just hacked, once
> tested, so beware):
You can use File.makedirs of ftools.rb (but not Dir.makedirs).
require 'ftools'
File.makedirs("dir1/dir2/dir3")
Thank you.
Masaki Suketa <CQN02273 / nifty.ne.jp>