MCPcopy
hub / github.com/rclone/rclone / Sync

Function Sync

fs/sync/sync.go:1369–1372  ·  view source on GitHub ↗

Sync fsrc into fdst

(ctx context.Context, fdst, fsrc fs.Fs, copyEmptySrcDirs bool)

Source from the content-addressed store, hash-verified

1367
1368// Sync fsrc into fdst
1369func Sync(ctx context.Context, fdst, fsrc fs.Fs, copyEmptySrcDirs bool) error {
1370 ci := fs.GetConfig(ctx)
1371 return runSyncCopyMove(ctx, fdst, fsrc, ci.DeleteMode, false, false, copyEmptySrcDirs, false)
1372}
1373
1374// CopyDir copies fsrc into fdst
1375func CopyDir(ctx context.Context, fdst, fsrc fs.Fs, copyEmptySrcDirs bool) error {

Callers 15

checkBase32768Method · 0.92
fastCopyMethod · 0.92
runTestStepMethod · 0.92
sync.goFile · 0.92
rcSyncCopyMoveFunction · 0.85
TestTransformFunction · 0.85
TestTransformCopyFunction · 0.85
TestDoubleTransformFunction · 0.85
TestFileTagFunction · 0.85
TestNoTagFunction · 0.85
TestDirTagFunction · 0.85
TestAllTagFunction · 0.85

Calls 2

GetConfigFunction · 0.92
runSyncCopyMoveFunction · 0.85

Tested by 15

runTestStepMethod · 0.74
TestTransformFunction · 0.68
TestTransformCopyFunction · 0.68
TestDoubleTransformFunction · 0.68
TestFileTagFunction · 0.68
TestNoTagFunction · 0.68
TestDirTagFunction · 0.68
TestAllTagFunction · 0.68
TestRunTwiceFunction · 0.68
TestConflictingFunction · 0.68
TestBase64Function · 0.68
TestErrorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…