how to create a folder with Ruby
Posted: Thu Nov 07, 2013 8:38 pm
Hi,
it's been a while.
But does anybody knows how to create a folder?
To get to a folder is easy but to create one?
For example a user puts in a name, then i want to create a folder in the My Documents folder.
I tried something like this:
begin
Dir::mkdir(directory_name)
rescue
puts "the directory already exists"
end
but....
anyone ?
thanks a lot for your help
it's been a while.
But does anybody knows how to create a folder?
To get to a folder is easy but to create one?
For example a user puts in a name, then i want to create a folder in the My Documents folder.
I tried something like this:
begin
Dir::mkdir(directory_name)
rescue
puts "the directory already exists"
end
but....
anyone ?
thanks a lot for your help