How to create directory in file system

This seems like it should be an easy thing to figure out, but I've been
Googling for a half hour, plus looked in the Pickaxe book, but can't
seem to find an answer, so please forgive a really newbie-ish question,
but...

How do you create a directory in Ruby? It appears to be via File.new,
but I can't figure out anything further than that.

Any help would be greatly appreciated.

TIA,
Jeff

···

--
Posted via http://www.ruby-forum.com/.

I've been using FileUtils.mkdir.

;Daniel

···

On 7/7/06, Jeff LaMarche <jeff_lamarche@mac.com> wrote:

This seems like it should be an easy thing to figure out, but I've been
Googling for a half hour, plus looked in the Pickaxe book, but can't
seem to find an answer, so please forgive a really newbie-ish question,
but...

How do you create a directory in Ruby? It appears to be via File.new,
but I can't figure out anything further than that.

--
Daniel Baird
http://tiddlyspot.com (free, effortless TiddlyWiki hosting)
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things
That Suck)

Dir.mkdir("c:/asdf")

···

On 7/6/06, Daniel Baird <danielbaird@gmail.com> wrote:

On 7/7/06, Jeff LaMarche <jeff_lamarche@mac.com> wrote:
>
> This seems like it should be an easy thing to figure out, but I've been
> Googling for a half hour, plus looked in the Pickaxe book, but can't
> seem to find an answer, so please forgive a really newbie-ish question,
> but...
>
> How do you create a directory in Ruby? It appears to be via File.new,
> but I can't figure out anything further than that.

I've been using FileUtils.mkdir.

;Daniel

--
Daniel Baird
http://tiddlyspot.com (free, effortless TiddlyWiki hosting)
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things
That Suck)