From: "Jan E." Date: 2012-07-04T19:27:36+09:00 Subject: Re: Copying Files Alex C. wrote in post #1067368: > One more thing - can I specify more than one path to ignore? Supply an array for ignore_folders and use Enumerable#any? to check if file_path starts with any of the ignore_folders: ignore_folders = ['D:/Stuff/Ruby/2/', 'D:/Stuff/Ruby/3/'] copy_files = Dir["#{original_path}/**/*.*"].reject do |file_path| ignore_folders.any? {|ignore| file_path.start_with? ignore} end -- Posted via http://www.ruby-forum.com/.