Hi,

-----Original Message-----
From: Mariusz Pekala [mailto:skoot / ideico.net] 
Sent: Thursday, June 14, 2007 2:35 PM
To: ruby-talk ML
Subject: Re: Dir copy with rename

/*
The standard procedure with 'find' utility, when performing recursive
delete or similiar operations is to use '-depth' option, so it first
processes the files inside, and then directories.
*/

OK i'll have a look

I have =

require 'fileutils'

srcdir="Y:/test"
destdir="Y:/test_"

Dir.mkdir(destdir) unless File.exists?(destdir)

Dir.entries(srcdir).each do | i | 
  if i !='.' && i !='..' && i !=~ /\./
    FileUtils.cp_r Dir["#{srcdir}/**"], destdir,:verbose => true
 end
end


my problem =
i don't know how to put the rename part in,
and how to do it without fileutils, because i have to do it
with jruby,  and jruby doesn't have fileutils

"No such file to load -- fileutils"

Regards, Gilbert