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.
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.
If you are trying to create a directory and its parent directories, you want to use FileUtils.mkdir_p
instead.