4 # Find.find('/foo','/bar') {|f| ...}
7 # find('/foo','/bar') {|f| ...}
12 path.collect!{|d| d.dup}
13 while file = path.shift
17 if File.lstat(file).directory? then
21 next if f == "." or f == ".."
22 if File::ALT_SEPARATOR and file =~ /^(?:[\/\\]|[A-Za-z]:[\/\\]?)$/ then
24 elsif file == "/" then
27 f = File.join(file, f)
35 rescue Errno::ENOENT, Errno::EACCES
44 module_function :find, :prune