Hi,

I have all of the program "atk" in one directory.

I want to recursively copy this to /usr.

This commandline works in bash shell:

  cp -r /Programs/Atk/Current/* /usr/

These examples in Ruby do not work:

  FileUtils.cp_r '/Programs/ATK/Current/', '/usr'
  FileUtils.cp_r '/Programs/ATK/Current/', '/usr/'
  FileUtils.cp_r '/Programs/ATK/Current', '/usr/'

(They all copy Current/ instead of what is inside Current/* )

And using '*' like so

  FileUtils.cp_r '/Programs/ATK/Current/*', '/usr/'

does neither work.

Does anyone have an idea how to grab the * content
under Current/ and copy that to /usr ?
-- 
Posted via http://www.ruby-forum.com/.