lib/core/facets/dir/recurse.rb in facets-2.7.0 vs lib/core/facets/dir/recurse.rb in facets-2.8.0

- old
+ new

@@ -2,9 +2,13 @@ # Recursively scan a directory and pass each file # to the given block. # # CREDIT: George Moschovitis + # + # TODO: If fully compatible, reimplement as alias of Find.find, + # or just copy and paste Find.find code here if it looks more robust. + # def self.recurse(path='.', &block) list = [] stoplist = ['.', '..'] Dir.foreach(path) do |f| next if stoplist.include?(f)