diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/find.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find.rb b/lib/find.rb index b2e811e614..06ac9e2c0c 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -33,7 +33,7 @@ module Find # See the +Find+ module documentation for an example. # def find(*paths) # :yield: path - paths.collect!{|d| open(d){}; d.dup} + paths.collect!{|d| raise Errno::ENOENT unless File.exist?(d); d.dup} while file = paths.shift catch(:prune) do yield file.dup.taint |