operations: fix Move godoc to note Copy fallback is accounted as a transfer - fixes #8799

This commit is contained in:
Søren Lindberg
2026-07-21 16:33:30 +01:00
committed by Nick Craig-Wood
parent d67eff43ba
commit a1d906fd3d
+3 -1
View File
@@ -416,7 +416,9 @@ func SameObject(src, dst fs.Object) bool {
// It returns the destination object if possible. Note that this may
// be nil.
//
// This is accounted as a check.
// This is accounted as a check, unless Move falls back to Copy + Delete
// (on backends without server-side move), in which case the Copy is
// accounted as a transfer.
func Move(ctx context.Context, fdst fs.Fs, dst fs.Object, remote string, src fs.Object) (newDst fs.Object, err error) {
return move(ctx, fdst, dst, remote, src, false)
}