Permalink
Browse files

Fix Dirent#each_child attempting iteration on file children (github #13

…).
  • Loading branch information...
1 parent 913bb7f commit dde760eff9588070a1edc26e998d1be012ec3d79 @aquasync committed Feb 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ole/storage/base.rb
View
@@ -831,7 +831,7 @@ def time
end
def each_child(&block)
- @children.each(&block)
+ @children.each(&block) if dir?
end
# flattens the tree starting from here into +dirents+. note it modifies its argument.

0 comments on commit dde760e

Please sign in to comment.