code: func (c *folderSummaryService) sendSummary(folder string) {
  	// The folder summary contains how many bytes, files etc
  	// are in the folder and how in sync we are.
  	data, err := c.Summary(folder)
  	if err != nil {
  		return
  	}
  	events.Default.Log(events.FolderSummary, map[string]interface{}{
  		"folder":  folder,
  		"summary": data,
  	})
  
  	for _, devCfg := range c.cfg.Folders()[folder].Devices {
  		if devCfg.DeviceID.Equals(c.id) {
  			// We already know about ourselves.
  			continue
  		}
  		if _, ok := c.model.Connection(devCfg.DeviceID); !ok {
  			// We're not interested in disconnected devices.
  			continue
  		}
  
  		// Get completion percentage of this folder for the
  		// remote device.
  		comp := c.model.Completion(devCfg.DeviceID, folder).Map()
  		comp["folder"] = folder
  		comp["device"] = devCfg.DeviceID.String()
  		events.Default.Log(events.FolderCompletion, comp)
  	}
  }
docs: // sendSummary send the summary events for a single folder