MCPcopy
hub / github.com/rclone/rclone / CopyDir

Function CopyDir

fs/sync/sync.go:1375–1377  ·  view source on GitHub ↗

CopyDir copies fsrc into fdst

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

Source from the content-addressed store, hash-verified

1373
1374// CopyDir copies fsrc into fdst
1375func CopyDir(ctx context.Context, fdst, fsrc fs.Fs, copyEmptySrcDirs bool) error {
1376 return runSyncCopyMove(ctx, fdst, fsrc, fs.DeleteModeOff, false, false, copyEmptySrcDirs, false)
1377}
1378
1379// moveDir moves fsrc into fdst
1380func moveDir(ctx context.Context, fdst, fsrc fs.Fs, deleteEmptySrcDirs bool, copyEmptySrcDirs bool) error {

Callers 15

InternalTestAgeQueryMethod · 0.92
copy.goFile · 0.92
speedTestFunction · 0.92
resyncDirMethod · 0.92
runTestCaseMethod · 0.92
runTestStepMethod · 0.92
copyto.goFile · 0.92
rcSyncCopyMoveFunction · 0.70
TestCopyWithDryRunFunction · 0.70
TestCopyFunction · 0.70
testCopyMetadataFunction · 0.70

Calls 1

runSyncCopyMoveFunction · 0.85

Tested by 15

InternalTestAgeQueryMethod · 0.74
runTestCaseMethod · 0.74
runTestStepMethod · 0.74
TestCopyWithDryRunFunction · 0.56
TestCopyFunction · 0.56
testCopyMetadataFunction · 0.56
TestCopyMissingDirectoryFunction · 0.56
TestCopyNoTraverseFunction · 0.56
TestCopyCheckFirstFunction · 0.56
TestCopyWithDepthFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…