From: "Alex C." Date: 2012-07-04T19:03:32+09:00 Subject: Re: Copying Files "Jesús Gabriel y Galán" wrote in post #1067364: > On Wed, Jul 4, 2012 at 11:55 AM, Alex C. wrote: >>>> defined above it? >> file_path.start_with? ignore_folder >> end >> >> FileUtils.copy Dir["#{original_path}/**/*.*"], target_path > >> Thats what I have, and it now copies all the files, but hasn't ignored a >> file thats in D:/Stuff/Ruby/2/ - which is what I wanted..hmmph > > FileUtils.copy copy_files, target_path > > you need to use the array you calculated previously. > > > Jesus. Thanks! I only started looking at this yesterday and haven't done any reading really - just wanted something quick, so appreciate it's been like talking to a 2 year old. Anyway, it works - thanks again -- Posted via http://www.ruby-forum.com/.