def write_file(file_path, gd_data)
      if gd_data && !File.exists?(file_path)
        FileUtils.mkdir_p(File.dirname(file_path))
        File.open(file_path, "wb") do |data|
          data << gd_data
        end
      end
    end
def write_file(file_path, gd_data)
      if gd_data && !File.exists?(file_path)
        FileUtils.mkdir_p(File.dirname(file_path))
        File.open(file_path, "wb") do |data|
          data << gd_data
        end
      end
    end
Writes the gameday data to the file specified.
 Does not overwrite existing files.