    # File lib/spec/runner/options.rb, line 219
          def files_to_load
            result = []
            sorted_files.each do |file|
              if File.directory?(file)
                filename_pattern.split(",").each do |pattern|
                  result += Dir[File.expand_path("#{file}/#{pattern.strip}")]
                end
              elsif File.file?(file)
                result << file
              else
                raise "File or directory not found: #{file}"
              end
            end
            result
          end