From: "Carlo E. Prelz" Date: 2013-01-10T17:02:56+09:00 Subject: Re: Can I create directories with dynamic names on run time using Ruby1.9? Subject: Re: Can I create directories with dynamic names on run time using Ruby1.9? Date: Thu 10 Jan 13 04:55:12PM +0900 Quoting Arup Rakshit (lists@ruby-forum.com): > Can I have a simple `snippet` for that, I am totally new to Ruby. I have > Ruby 1.9.3 installed in my PC(windows 7) You may be new to ruby, but in order to write code you should know how to call a method of a class... This works on Linux (I have no windows): require 'fileutils' FileUtils::mkdir_p('/a/b/c/d') This results (if you have the appropriate rights) in the creation of these directories: /a /a/b /a/b/c /a/b/c/d Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)