From: "Peña, Botp" Date: 2008-04-09T11:25:10+09:00 Subject: Re: Do arrays use up alot of memory space? From: list-bounce@example.com # > # here i combine those 3 arrays into 1 multi-dim array # > sd_a=source.zip(dest,options) # # hmmm, would combining the arrays be feasible if i were to add on more # values to the either of the arrays? i zipped it because, 1. i was too lazy to retype it again 2. i knew it would work since your arrays are one-to-one on each other # > sd_a.each do |sd| # > source, destination, selections = sd # > src = File.join source,selections # > puts "Source: #{src}" # > puts "Dest: #{destination}" # > # > # i comment the 2 lines below for you to choose bw recurse or not # > # again, if you recurse, check for directory overlaps # > # > # FileUtils.cp src, destination # > # FileUtils.cp_r src, destination # # This command runs an error because the value of src is # "C:/movtest/test/2008*" and it doesnt recognise this wildcard but # instead looks for the file which has the name 2008*. # so i tried to chang it alil: no problem, just do FileUtils.cp Dir.glob(src), destination that should work because i just tested it here :) kind regards -botp