From: Steve Klabnik Date: 2012-04-11T04:32:29+09:00 Subject: Re: Copy all files in a directory Actually, since Dir.glob taks a block, I like this better: Dir.glob("dir1/*") {|f| FileUtils.cp File.expand_path(f), "dir2" }