    # File lib/standard/facets/pathname.rb, line 173
      def visit(options = {:all => false, :hidden => false})
        if self.directory?
          children.each do |entry|
            next if entry.basename.to_s[0] == "." && !options[:hidden]
            yield(entry) unless entry.directory? && !options[:all]
            ##entry.visit(:all => options[:all]) { |sub_entry| yield sub_entry } if entry.directory?
            entry.visit(:all => options[:all], :hidden => options[:hidden]) do |sub_entry|
              yield(sub_entry)
            end if entry.directory?
          end
        else
          yield self
        end
      end