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