Hi,

At Wed, 4 Aug 2004 17:07:45 +0900,
Gavin Sinclair wrote in [ruby-talk:108287]:
> >> Can anyone tell me how to get FileUtils to do what I want i.e. copy
> >> the  contents of one directory to another directory, recursively?
> >
> > 	FileUtils.cp_r( source + "/.", dest )
> 
> That shouldn't be necessary, surely!?  I consider that a bug.

cp_r("foo", dest) copies "foo" underneath dest, but Stephen
wants it to copy files under "foo", doesn't he?

The error certainly is a bug (and I've just posted a patch
[ruby-dev:24018]), but still I'd recommend the above method
since Dir.glob doesn't return dot files.

-- 
Nobu Nakada