From: Jano Svitok Date: 2008-11-10T21:48:32+09:00 Subject: Re: Moving large amount of files, 1.750.000+ On Mon, Nov 10, 2008 at 09:28, Saji N. Hameed wrote: > This may be a naive suggestion. It may be worthwhile to see if there > is a benefit in parallelize the process using Threads (split the transfer > jobs among multiple threads ??? ... ) I guess Ara Howard's threadify (http://codeforpeople.com/lib/ruby/threadify/) might be handy. The usefulness of more threads depends on network saturation - measure your network/disk throughput using plain system copy (maybe several parallel ones), then measure what your script does. I'm afraid if you're going over ethernet, one thread would be enough. I'd also suggest using File.directory? for testing if the file is directory, instead of searching for '.' Jano