hal9000@hypermetrics.com 7/2/02 12:28PM >>>
recurse(dir) do |item|
File.delete(item)
endFind.find is very similar, though it first visits directories and then
their content (preventing to delete directories), and does not change
the current dir.
find #{start} ! -type d.each { |file|
File.delete(file)
}
ksh again ![]()
âŚHal Fulton said:
It might also be good to have an iterator that only
visited directories. But I havenât thought that through.
find #{start} -type d.each { |dir|
âŚ
}
ksh yet again⌠![]()
¡¡¡
----- Original Message -----
From: âMassimiliano Mirraâ list@NOSPAMchromatic-harp.com.web-hosting.com
To: âruby-talk MLâ ruby-talk@ruby-lang.org
Sent: Tuesday, July 02, 2002 12:19 PM
Subject: Re: Question: ruby vs. ksh