MCPcopy
hub / github.com/rclone/rclone / moveDir

Function moveDir

fs/sync/sync.go:1380–1382  ·  view source on GitHub ↗

moveDir moves fsrc into fdst

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

Source from the content-addressed store, hash-verified

1378
1379// moveDir moves fsrc into fdst
1380func moveDir(ctx context.Context, fdst, fsrc fs.Fs, deleteEmptySrcDirs bool, copyEmptySrcDirs bool) error {
1381 return runSyncCopyMove(ctx, fdst, fsrc, fs.DeleteModeOff, true, deleteEmptySrcDirs, copyEmptySrcDirs, false)
1382}
1383
1384// Transform renames fdst in place
1385func Transform(ctx context.Context, fdst fs.Fs, deleteEmptySrcDirs bool, copyEmptySrcDirs bool) error {

Callers 2

MoveDirFunction · 0.85

Calls 1

runSyncCopyMoveFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…