MCPcopy
hub / github.com/rclone/rclone / CopyFile

Function CopyFile

fs/operations/copy.go:428–430  ·  view source on GitHub ↗

CopyFile moves a single file possibly to a new name

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

Source from the content-addressed store, hash-verified

426
427// CopyFile moves a single file possibly to a new name
428func CopyFile(ctx context.Context, fdst fs.Fs, fsrc fs.Fs, dstFileName string, srcFileName string) (err error) {
429 return moveOrCopyFile(ctx, fdst, fsrc, dstFileName, srcFileName, true, false)
430}

Callers 15

copy.goFile · 0.92
copyFileMethod · 0.92
copyto.goFile · 0.92
sync.goFile · 0.92
handleTransferMethod · 0.92
testSyncSuffixFunction · 0.92
TestCopyFileFunction · 0.92
TestCopyLongFileFunction · 0.92
TestCopyFileBackupDirFunction · 0.92
TestCopyFileCompareDestFunction · 0.92

Calls 1

moveOrCopyFileFunction · 0.85

Tested by 12

copyFileMethod · 0.74
testSyncSuffixFunction · 0.74
TestCopyFileFunction · 0.74
TestCopyLongFileFunction · 0.74
TestCopyFileBackupDirFunction · 0.74
TestCopyFileCompareDestFunction · 0.74
TestCopyFileCopyDestFunction · 0.74
TestCopyInplaceFunction · 0.74
TestCopyLongFileNameFunction · 0.74
TestCopyFileMaxTransferFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…