From: Nick Sabalausky Date: 2010-02-12T07:03:07+09:00 Subject: Re: Here's a filtered file/dir copy, FWIW. Albert Schlef wrote: > Thomas Sawyer wrote: >> On Feb 9, 6:07�pm, Nick Sabalausky >> wrote: >>> useful. (FWIW, this is modified from the implementations in fileutils.rb >>> from Ruby 1.9.1p378). >> >> Seems like a useful idea. Join ruby-core mailing list and ask. And let >> us know the outcome. > > I too think it's useful. > > Nick, I hope your code doesn't create empty folders when none of the > files match the condition. I haven't tested that, but I don't think it will: Unless I'm missing something, the only path into the code that does any actual copying at all (file or directory) is through a conditional that calls the filter and checks if it returns true. Also, I'm a little confused about the comment about joining the ruby-core list and asking: The ruby-forum.com interface I'm using (I *hate* dealing with mailing lists directly, forums and newsgroups are fine though) lists ruby-core as read only and there doesn't seem to be anything anywhere about joining it. Plus it looks like it's primarily just an automatic-tracker that submitted bug tickets get automatically sent to...? -- Posted via http://www.ruby-forum.com/.