MCPcopy Index your code
hub / github.com/rclone/rclone / resyncDir

Method resyncDir

cmd/bisync/queue.go:291–301  ·  view source on GitHub ↗
(ctx context.Context, fsrc, fdst fs.Fs)

Source from the content-addressed store, hash-verified

289}
290
291func (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"
304func (b *bisyncRun) syncEmptyDirs(ctx context.Context, dst fs.Fs, candidates bilib.Names, dirsList *fileList, results *[]Results, operation string) {

Callers 1

resyncMethod · 0.95

Calls 5

preCopyMethod · 0.95
CopyDirFunction · 0.92
DebugfFunction · 0.92
prettyprintFunction · 0.85
ReadResultsFunction · 0.85

Tested by

no test coverage detected