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

On 7/7/06, Jeff LaMarche [email protected] 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

Dir.mkdir(“c:/asdf”)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs