(change *remote.Change)
| 209 | } |
| 210 | |
| 211 | func (d *downstream) shouldKeep(change *remote.Change) bool { |
| 212 | // Is a delete change? |
| 213 | if change.ChangeType == remote.ChangeType_DELETE { |
| 214 | return shouldRemoveLocal(filepath.Join(d.sync.LocalPath, change.Path), parseFileInformation(change), d.sync, false) |
| 215 | } |
| 216 | |
| 217 | // Exclude symlinks |
| 218 | // if fileInformation.IsSymbolicLink { |
| 219 | // Add them to the fileMap though |
| 220 | // d.config.fileIndex.fileMap[fileInformation.Name] = fileInformation |
| 221 | // } |
| 222 | |
| 223 | // Should we download the file / folder? |
| 224 | return shouldDownload(change, d.sync) |
| 225 | } |
| 226 | |
| 227 | func (d *downstream) applyChanges(changes []*remote.Change, force bool) error { |
| 228 | d.sync.log.Debugf("Downstream - Start applying %d changes", len(changes)) |
no test coverage detected