From: "Hal E. Fulton" Date: 2002-07-03T02:28:43+09:00 Subject: Re: Question: ruby vs. ksh ----- Original Message ----- From: "Massimiliano Mirra" To: "ruby-talk ML" Sent: Tuesday, July 02, 2002 12:19 PM Subject: Re: Question: ruby vs. ksh > recurse(dir) do |item| > File.delete(item) > end > > > Find.find is very similar, though it first visits directories and then > their content (preventing to delete directories), and does not change > the current dir. > > Ideas? If that is the case, it should be possible to steal the code from Find and make a minor change in it. It might also be good to have an iterator that only visited directories. But I haven't thought that through. Hal Fulton