()
| 743 | } |
| 744 | |
| 745 | func (s *rsyncStats) String() string { |
| 746 | if s.Added == 0 && s.Deleted == 0 && s.Modified == 0 && s.Metadata == 0 { |
| 747 | return "" |
| 748 | } |
| 749 | return fmt.Sprintf("added: %d, deleted: %d, modified: %d, metadata: %d", s.Added, s.Deleted, s.Modified, s.Metadata) |
| 750 | } |
| 751 | |
| 752 | func getRsyncStats(ctx context.Context, source, destination string) (string, *rsyncStats, error) { |
| 753 | paths := []string{source, destination} |
no outgoing calls