diff options
Diffstat (limited to 'lib/find.rb')
-rw-r--r-- | lib/find.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/find.rb b/lib/find.rb index 52efde81fd..08a3908c5b 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -33,10 +33,9 @@ module Find # See the +Find+ module documentation for an example. # def find(*paths) # :yield: path - paths.collect!{|d| d.dup} + paths.collect!{|d| open(d){}; d.dup} while file = paths.shift catch(:prune) do - next unless File.exist? file yield file.dup.taint begin if File.lstat(file).directory? then |