    # File lib/chef/monkey_patches/dir.rb, line 24
          def glob(pattern, flags=0)
            raise ArgumentError unless (
              !pattern.nil? and (
                pattern.is_a? Array and !pattern.empty?
              ) or pattern.is_a? String
            )
            pattern.gsub!(/\\/, "/") if RUBY_PLATFORM =~ /mswin|mingw32|windows/
            [pattern].flatten.inject([]) { |r, p| r + glob_(p, flags) }
          end