MCPcopy
hub / github.com/rclone/rclone / CanServerSideMove

Function CanServerSideMove

fs/operations/operations.go:526–530  ·  view source on GitHub ↗

CanServerSideMove returns true if fdst support server-side moves or server-side copies Some remotes simulate rename by server-side copy and delete, so include remotes that implements either Mover or Copier.

(fdst fs.Fs)

Source from the content-addressed store, hash-verified

524// Some remotes simulate rename by server-side copy and delete, so include
525// remotes that implements either Mover or Copier.
526func CanServerSideMove(fdst fs.Fs) bool {
527 canMove := fdst.Features().Move != nil
528 canCopy := fdst.Features().Copy != nil
529 return canMove || canCopy
530}
531
532// SuffixName adds the current --suffix to the remote, obeying
533// --suffix-keep-extension if set

Callers 15

MoveMethod · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
testFileRenameFunction · 0.92
TestRWCacheRenameFunction · 0.92
newSyncCopyMoveFunction · 0.92
TestSyncWithTrackRenamesFunction · 0.92
testSyncBackupDirFunction · 0.92

Calls 1

FeaturesMethod · 0.65

Tested by 9

testFileRenameFunction · 0.74
TestRWCacheRenameFunction · 0.74
TestSyncWithTrackRenamesFunction · 0.74
testSyncBackupDirFunction · 0.74
testSyncSuffixFunction · 0.74
TestMoveFileBackupDirFunction · 0.74
TestCopyFileBackupDirFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…