From: Robert Klemme Date: 2008-08-22T00:19:07+09:00 Subject: Re: copy a folder and its contents 2008/8/21 aidy : > Hi Lex, > > On Aug 21, 3:59 pm, Lex Williams wrote: > >> use cp_r >> -- >> Posted viahttp://www.ruby-forum.com/. > > Thanks, I had previously tried it and received this recursive > exception > > No such file or directory - C:/rspec_reports/javascripts/test/ > javascripts/test/javascripts/test/javascripts/test/javascripts/test/ > javascripts/test/javascripts/test/javascripts/test/javascripts/test/ > javascripts/test/javascripts/test/javascripts/test/javascripts/test/ > javascripts This comes as no surprise because you are trying to copy a folder hierarchy into a folder which is inside that hierarchy. In other words: the recursion is in your copying. Are you sure this is what you want? Kind regards robert -- use.inject do |as, often| as.you_can - without end