(ctx context.Context, fsrc, fdst fs.Fs)
| 289 | } |
| 290 | |
| 291 | func (b *bisyncRun) resyncDir(ctx context.Context, fsrc, fdst fs.Fs) ([]Results, error) { |
| 292 | ctx = b.preCopy(ctx) |
| 293 | |
| 294 | err := sync.CopyDir(ctx, fdst, fsrc, b.opt.CreateEmptySrcDirs) |
| 295 | prettyprint(b.queueOpt.logger, "b.queueOpt.logger", fs.LogLevelDebug) |
| 296 | |
| 297 | getResults := ReadResults(b.queueOpt.logger.JSON) |
| 298 | fs.Debugf(nil, "Got %v results for %v", len(getResults), "resync") |
| 299 | |
| 300 | return getResults, err |
| 301 | } |
| 302 | |
| 303 | // operation should be "make" or "remove" |
| 304 | func (b *bisyncRun) syncEmptyDirs(ctx context.Context, dst fs.Fs, candidates bilib.Names, dirsList *fileList, results *[]Results, operation string) { |
no test coverage detected