From: Simon Staton Date: 2009-08-14T18:33:22+09:00 Subject: Re: newbie question making a folder with ruby Fleck Jean-Julien wrote: >> ok I have got another error this is the error it is giving, >> http://www.actinictesting.co.uk/error.jpg > > Didn't you forget to write the line > > dir = "/temp" > > ? > > If you get another error, try also > > dir = "c:/temp" > > and > > dir = "c:\temp" > > and do not forget to post the code you are using together with the > error... It really helps understanding what you could have misdone. > > Cheers, I am using the code you gave me here if File.exist?(dir) puts "#{dir} already exists !" else Dir.mkdir(dir) end where do I put the dir = "c:/temp"? -- Posted via http://www.ruby-forum.com/.