(options *initialSyncOptions)
| 43 | } |
| 44 | |
| 45 | func newInitialSyncer(options *initialSyncOptions) *initialSyncer { |
| 46 | if options.Strategy == "" { |
| 47 | options.Strategy = latest.InitialSyncStrategyMirrorLocal |
| 48 | } |
| 49 | |
| 50 | return &initialSyncer{o: options} |
| 51 | } |
| 52 | |
| 53 | func (i *initialSyncer) Run(remoteState map[string]*FileInformation, localState map[string]*FileInformation) error { |
| 54 | // Here we calculate the delta between the remote and local state, the result of this operation |