Create subdirectories in Ruby

Viewed 4092

I want to create a sub-directory of a directory that does not exist like: /foo/bar

I tried:

Dir.mkdir("foo/bar")

but this does not work.

2 Answers
Related