MCPcopy
hub / github.com/rclone/rclone / MoveFile

Function MoveFile

fs/operations/operations.go:2126–2128  ·  view source on GitHub ↗

MoveFile moves a single file possibly to a new name This is treated as a transfer.

(ctx context.Context, fdst fs.Fs, fsrc fs.Fs, dstFileName string, srcFileName string)

Source from the content-addressed store, hash-verified

2124//
2125// This is treated as a transfer.
2126func MoveFile(ctx context.Context, fdst fs.Fs, fsrc fs.Fs, dstFileName string, srcFileName string) (err error) {
2127 return moveOrCopyFile(ctx, fdst, fsrc, dstFileName, srcFileName, false, false)
2128}
2129
2130// TransformFile transforms a file in place using --name-transform
2131//

Callers 9

runMethod · 0.92
move.goFile · 0.92
moveto.goFile · 0.92
renameMethod · 0.92
TestMoveFileFunction · 0.92
TestMoveFileBackupDirFunction · 0.92

Calls 1

moveOrCopyFileFunction · 0.85

Tested by 5

TestMoveFileFunction · 0.74
TestMoveFileBackupDirFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…