Forum: Ruby How to create directory in file system...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4a7fbbca80dcec9edc46bf97b8a9d10f?d=identicon&s=25 Jeff Lamarche (jlamarche)
on 2006-07-07 03:03
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
Bd0203dc8478deb969d72f52e741bd4f?d=identicon&s=25 Daniel Baird (Guest)
on 2006-07-07 03:08
(Received via mailing list)
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
E2b3bbf241a5daee3ee7696a7d4b2015?d=identicon&s=25 Vrtwo Lastname (d0t1q)
on 2006-07-07 03:42
(Received via mailing list)
Dir.mkdir("c:/asdf")
This topic is locked and can not be replied to.