From: Robert Klemme Date: 2009-01-15T05:54:06+09:00 Subject: Re: FileUtils.cp_r is slow? On 14.01.2009 18:45, Paul Lynch wrote: > I wrote a ruby script to backup files from my hard drive to my flash > drive. For some reason, with one of my flash drives, copying files > with FileUtils.cp_r is about 250 times slower than if I drag and drop > the files from one drive to the other in Windows. I'm suspecting a > buffer size problem. Is there a way to control the buffer size cp_r > selects? If not, what alternatives are there to FileUtils.cp_r? (I > am about to try writing my own, but someone must already have a > solution....) Could it be that Windows is doing the copy in the background while cp_r doesn't? After all, there is a reason why you must not simply plug off an USB drive... Kind regards robert -- remember.guy do |as, often| as.you_can - without end