How to create new folder

hello
how to create new folder /directory in ruby. how to check whether the
directory is exists. plz explain with example code

advance thx

narayana

Narayana Karthik wrote:

hello
how to create new folder /directory in ruby. how to check whether the
directory is exists. plz explain with example code

advance thx

narayana

sorry gentlemen

I found the answer for that sorry for making noise.
I am using Dir.mkdir(‘c:\india\newfolder’)

ok

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