aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/find.rb')
-rw-r--r--lib/find.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/find.rb b/lib/find.rb
index 08a3908c5b..b2e811e614 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -37,6 +37,7 @@ module Find
while file = paths.shift
catch(:prune) do
yield file.dup.taint
+ next unless File.exist? file
begin
if File.lstat(file).directory? then
d = Dir.open(file)